Re: Identity columns should own only one sequence - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Identity columns should own only one sequence
Date
Msg-id 9b31f658-b841-fa86-b9b1-e7329bd3a64d@2ndquadrant.com
Whole thread Raw
In response to Re: Identity columns should own only one sequence  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Identity columns should own only one sequence
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Optimizer items in the release notes
Next
From: Fabien COELHO
Date:
Subject: Re: [PATCH v1] Add \echo_stderr to psql