mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 01:27:40 +08:00
Add DISCARD SEQUENCES command.
DISCARD ALL will now discard cached sequence information, as well. Fabrízio de Royes Mello, reviewed by Zoltán Böszörményi, with some further tweaks by me.
This commit is contained in:
@ -72,6 +72,8 @@ SELECT setval('sequence_test'::regclass, 32);
|
||||
SELECT nextval('sequence_test'::text);
|
||||
SELECT setval('sequence_test'::regclass, 99, false);
|
||||
SELECT nextval('sequence_test'::text);
|
||||
DISCARD SEQUENCES;
|
||||
SELECT currval('sequence_test'::regclass);
|
||||
|
||||
DROP SEQUENCE sequence_test;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user