]> granicus.if.org Git - postgresql/commit
Ugly patch to make ALTER SEQUENCE OWNED BY not affect the currval() state
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Oct 2007 19:15:01 +0000 (19:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Oct 2007 19:15:01 +0000 (19:15 +0000)
commit9f3309858f6520d0d7b71d40f563bf08af769259
tree5a34eda350716a482ff8a64b0d98e9e98cc17198
parent72fb03b8c87acfb4c5be253f086170b8e20d7101
Ugly patch to make ALTER SEQUENCE OWNED BY not affect the currval() state
of the sequence.  Since OWNED BY never existed before 8.2, this seems
unlikely to create any compatibility issues.  Other forms of ALTER SEQUENCE
continue to do what they did before, namely update currval to match the
sequence's actual last_val.  That seems wrong on consideration, but we'll
not change it in a minor release --- 8.3 will make that fix.
src/backend/commands/sequence.c