Re: Confusing behavior of create table like

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Confusing behavior of create table like
Дата
Msg-id 171d3e96-fa39-d8b2-561d-8dd7f6157eb8@2ndquadrant.com
обсуждение исходный текст
Ответ на Confusing behavior of create table like  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Ответы Re: Confusing behavior of create table like  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Список pgsql-hackers
On 2020-08-01 00:06, Konstantin Knizhnik wrote:
> Postgres provides serial and bigserial column types for which it
> implicitly creates sequence.
> As far as this mechanism is somehow hidden from user, it may be
> confusing that table
> created with CREATE TABLE LIKE has no associated sequence.

That's why identity columns were added.  You shouldn't use serial 
columns anymore, especially if you are concerned about behaviors like this.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Keep elog(ERROR) and ereport(ERROR) calls in the cold path
Следующее
От: David Rowley
Дата:
Сообщение: Re: Replace remaining StrNCpy() by strlcpy()