This is the reaction:
$$\ce{2NaCl(aq) + 2H2O(l) -> 2NaOH(aq) + H2(g) + Cl2(g)}$$
If the above reaction goes on for long enough, we will eventually run out of Cl- ions. There will only remain an aqueous solution of NaOH in the pot as the hydrogen and chlorine gases have floated away.
Then the electrolysis of NaOH solution will start, and H2 gas will be produced at the cathode and O2 gas will be produced at the anode. Now, if this electrolysis also goes on, at some point, only solid NaOH will remain in the pot.
Is my analysis correct?