Ugly patch to make ALTER SEQUENCE OWNED BY not affect the currval() state

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9f3309858f6520d0d7b71d40f563bf08af769259
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-10-25T19:15:01Z
Releases: 8.2.6
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.

Files

PathChange+/−
src/backend/commands/sequence.c modified +16 −4