pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Дмитрий Иванов <firstdismay@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump insert column GENERATED
Date: Sun, 21 Nov 2021 11:24:09 -0500
Message-ID: <3443243.1637511849@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPL5KHobYgdgLj0E0ppUp1Y7MDf9QQX2V+hb7uxKM6E-TWKJsQ@mail.gmail.com>
References: <CAPL5KHrkBniyQt5e1rafm5DdXvbgiiqfEQEJ9GjtVzN71Jj5pA@mail.gmail.com>
	<d0d559a9-f5f8-dcb6-673c-edeb64f6cf65@aklaver.com>
	<CAPL5KHqj6Tixp5vc4gye7SG6czfSu1ctLVPRd+-sXE0DAN5tYQ@mail.gmail.com>
	<2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com>
	<CAPL5KHqpj+MZKS6hC-i0T3DynTEJf00J4oPFgKw+KSO9axz9jg@mail.gmail.com>
	<a3ba4919-107b-1ec9-64e4-fb1f77bd2163@aklaver.com>
	<CAPL5KHqxyp2Rd+NQVYVVNd_4xz9jdtYM+JJK3-ys9dQ5j=W7Pg@mail.gmail.com>
	<a978d4ee-905a-1321-f103-d055f08dfbea@aklaver.com>
	<CAPL5KHobYgdgLj0E0ppUp1Y7MDf9QQX2V+hb7uxKM6E-TWKJsQ@mail.gmail.com>

=?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= <firstdismay@gmail.com> 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 = 'bpd.object'::regclass and attnum > 0;

We should see attgenerated = 's' for the generated column, but
maybe we don't?

			regards, tom lane





view thread (20+ messages)  latest in thread

Message-ID: <3443243.1637511849@sss.pgh.pa.us>
Permalink:  ../3443243.1637511849@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3443243.1637511849@sss.pgh.pa.us

 · 

reply

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, firstdismay@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: pg_dump insert column GENERATED
  In-Reply-To: <3443243.1637511849@sss.pgh.pa.us>
  References: <CAPL5KHrkBniyQt5e1rafm5DdXvbgiiqfEQEJ9GjtVzN71Jj5pA@mail.gmail.com> <d0d559a9-f5f8-dcb6-673c-edeb64f6cf65@aklaver.com> <CAPL5KHqj6Tixp5vc4gye7SG6czfSu1ctLVPRd+-sXE0DAN5tYQ@mail.gmail.com> <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com> <CAPL5KHqpj+MZKS6hC-i0T3DynTEJf00J4oPFgKw+KSO9axz9jg@mail.gmail.com> <a3ba4919-107b-1ec9-64e4-fb1f77bd2163@aklaver.com> <CAPL5KHqxyp2Rd+NQVYVVNd_4xz9jdtYM+JJK3-ys9dQ5j=W7Pg@mail.gmail.com> <a978d4ee-905a-1321-f103-d055f08dfbea@aklaver.com> <CAPL5KHobYgdgLj0E0ppUp1Y7MDf9QQX2V+hb7uxKM6E-TWKJsQ@mail.gmail.com> <3443243.1637511849@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