From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Mamin <M.Mamin@intershop.de>
Cc: Joe Conway <mail@joeconway.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: removing "serial" from table definitions.
Date: Thu, 24 Jun 2021 10:19:17 -0400
Message-ID: <2620781.1624544357@sss.pgh.pa.us> (raw)
In-Reply-To: <5ef2dc435bd749caaf73015c4cc5a626@intershop.de>
References: <feaeb83188034e9e88fcaeb33225b22c@intershop.de>
<e409f4c5-ff1d-dd6f-b34b-c2383a62f61b@joeconway.com>
<5ef2dc435bd749caaf73015c4cc5a626@intershop.de>
Marc Mamin <M.Mamin@intershop.de> writes:
> Yes, I undersand that serial is just a hint at table creation time, but is there a place in catalog where we can see if the table was created using 'serial' ?
No. Where the docs say "these are equivalent", they mean that very
literally.
> The difference we see between the source and target database is that a schema prefix is displayed with the sequence on one side, and not on the other..
This likely has to do with the search_path settings being different in the
sessions inspecting the two DBs. I do not think it is related to
serial-ness at all, it's just the normal behavior of regclass_out for the
OID constant that's the argument of nextval().
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, M.Mamin@intershop.de, mail@joeconway.com
Subject: Re: removing "serial" from table definitions.
In-Reply-To: <2620781.1624544357@sss.pgh.pa.us>
References: <feaeb83188034e9e88fcaeb33225b22c@intershop.de> <e409f4c5-ff1d-dd6f-b34b-c2383a62f61b@joeconway.com> <5ef2dc435bd749caaf73015c4cc5a626@intershop.de> <2620781.1624544357@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox