Make DISCARD SEQUENCES also discard the last used sequence.

Otherwise, we access already-freed memory.  Oops.

Report by Michael Paquier.  Fix by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/16a906f535082fcf3d8c6732d8e941e037bc6d5e

Modified Files
--------------
src/backend/commands/sequence.c        |    2 ++
src/test/regress/expected/sequence.out |    3 +++
src/test/regress/sql/sequence.sql      |    2 ++
3 files changed, 7 insertions(+)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to