From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Confusing behavior of create table like |
Date: | 2020-08-03 08:00:27 |
Message-ID: | 171d3e96-fa39-d8b2-561d-8dd7f6157eb8@2ndquadrant.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2020-08-03 09:01:35 | Re: Replace remaining StrNCpy() by strlcpy() |
Previous Message | Michael Paquier | 2020-08-03 07:55:58 | Re: SQL/JSON: JSON_TABLE |