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 1mopdg-0000r9-G9 for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 16:24:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mopde-0003Ww-2l for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 16:24:22 +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 1mopdd-0003Wk-OO for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 16:24:21 +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 1mopdX-0007qq-5j for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 16:24:21 +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 1ALGO9EY3443244; Sun, 21 Nov 2021 11:24:09 -0500 From: Tom Lane To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= cc: Adrian Klaver , pgsql-general Subject: Re: pg_dump insert column GENERATED In-reply-to: References: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com> Comments: In-reply-to =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= message dated "Sun, 21 Nov 2021 20:23:12 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3443242.1637511849.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 21 Nov 2021 11:24:09 -0500 Message-ID: <3443243.1637511849@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?=3D writes: >> So did you do an ALTER TABLE ... GENERATED ALWAYS AS on bpg.object in >> the Postgres 12 version of the database? > I think you're right, I added later. Hmm, that's suggestive, but I tried making a table that way and still did not see any pg_dump misbehavior. It might be useful to see the results of this query on the v12 server: select attname, attgenerated from pg_attribute where attrelid =3D 'bpd.object'::regclass and attnum > 0; We should see attgenerated =3D 's' for the generated column, but maybe we don't? regards, tom lane