setval
Loading rows with explicit ids leaves the sequence behind. The next default insert would collide. setval moves the counter.
task
idt(id serial) was loaded with explicit ids 10 and 20; re-sync its sequence to the maximum id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Loading rows with explicit ids leaves the sequence behind. The next default insert would collide. setval moves the counter.
idt(id serial) was loaded with explicit ids 10 and 20; re-sync its sequence to the maximum id.