Re: Identity columns should own only one sequence

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Identity columns should own only one sequence
Дата
Msg-id 9b31f658-b841-fa86-b9b1-e7329bd3a64d@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Identity columns should own only one sequence  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Identity columns should own only one sequence  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Optimizer items in the release notes
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [PATCH v1] Add \echo_stderr to psql