Re: [HACKERS] Rollback sequence reset on TRUNCATE rollback patch

2010-11-17 Thread Tom Lane
Steve Singer writes: > The attached patch modifies TRUNCATE ... RESTART IDENTITY so that if the > transaction rolls back the restart of the sequence will also be rolled back. Applied with significant editorialization (didn't much like the refactoring you'd chosen for DefineSequence, and there we

[HACKERS] Rollback sequence reset on TRUNCATE rollback patch

2010-10-26 Thread Steve Singer
The attached patch modifies TRUNCATE ... RESTART IDENTITY so that if the transaction rolls back the restart of the sequence will also be rolled back. It follows the general outline discussed at http://archives.postgresql.org/pgsql-hackers/2008-05/msg00550.php of assigning a new reffilenode to