mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Make DISCARD SEQUENCES also discard the last used sequence.
Otherwise, we access already-freed memory. Oops. Report by Michael Paquier. Fix by me.
This commit is contained in:
@ -1617,4 +1617,6 @@ ResetSequenceCaches(void)
|
||||
free(seqtab);
|
||||
seqtab = next;
|
||||
}
|
||||
|
||||
last_used_seq = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user