Re: Identity columns should own only one sequence
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>,
pgsql-hackers@lists.postgresql.org
Date: 2019-04-27T12:16:01Z
Lists: pgsql-hackers
Attachments
- 0001-Untangle-some-stuff-about-identity-sequences.patch (text/plain) patch 0001
On 2019-04-26 15:37, Laurenz Albe wrote: > What do you think of the patch I just posted on this thread to > remove ownership automatically when the default is dropped, as Michael > suggested? I think that would make things much more intuitive from > the user's perspective. I think that adds more nonstandard behavior on top of an already confusing and obsolescent feature, so I can't get too excited about it. A more forward-looking fix would be your other idea of having getOwnedSequence() only deal with identity sequences (not serial sequences). See attached patch for a draft. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Make identity sequence management more robust
- 19781729f789 13.0 landed