From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix check for child column generation status matching parent.
Date: Thu, 16 Feb 2023 23:52:05 +0000
Message-ID: <E1pSo2m-001V4Y-Kw@gemulon.postgresql.org> (raw)
Fix check for child column generation status matching parent.
In commit 8bf6ec3ba, I mistakenly supposed that MergeAttributes'
loop over saved_schema was reprocessing column definitions that
had already been checked earlier: there is a variant syntax for
creating a child partition in which that's not true. So we need
to duplicate the full check appearing further up.
(Actually, I believe that the "if (restdef->identity)" part is
not reachable, because we reject identity on partitions earlier.
But it seems wise to keep the check, in case that's ever relaxed,
and to keep this code in sync with the other instance.)
Per report from Alexander Lakhin.
Discussion: https://postgr.es/m/4a8200ca-8378-653e-38ed-b2e1f1611aa6@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a0fa18cc0d6e4dc3dc24b57ae11253356c55d6c4
Modified Files
--------------
src/backend/commands/tablecmds.c | 37 ++++++++++++++++++++++++---------
src/test/regress/expected/generated.out | 16 ++++++++++++++
src/test/regress/sql/generated.sql | 12 +++++++++++
3 files changed, 55 insertions(+), 10 deletions(-)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix check for child column generation status matching parent.
In-Reply-To: <E1pSo2m-001V4Y-Kw@gemulon.postgresql.org>
References: <E1pSo2m-001V4Y-Kw@gemulon.postgresql.org>
* 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