Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwQCc-0003kl-BD for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 14:19:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwQCb-0007uF-1j for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 14:19:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwQCa-0007u7-PJ for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 14:19:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwQCY-0006He-Q0 for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 14:19:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15OEJHCe2620782; Thu, 24 Jun 2021 10:19:18 -0400 From: Tom Lane To: Marc Mamin cc: Joe Conway , pgsql-general Subject: Re: removing "serial" from table definitions. In-reply-to: <5ef2dc435bd749caaf73015c4cc5a626@intershop.de> References: <5ef2dc435bd749caaf73015c4cc5a626@intershop.de> Comments: In-reply-to Marc Mamin message dated "Thu, 24 Jun 2021 13:29:38 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2620780.1624544357.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Jun 2021 10:19:17 -0400 Message-ID: <2620781.1624544357@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marc Mamin 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 usin= g '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 s= chema prefix is displayed with the sequence on one side, and not on the ot= her.. 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