pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Assert that partition inherits from only one parent in MergeAttr
Date: Tue, 16 Jan 2024 08:50:40 +0000
Message-ID: <E1rPf9c-001ewP-JZ@gemulon.postgresql.org> (raw)

Assert that partition inherits from only one parent in MergeAttributes()

A partition inherits only from one partitioned table and thus inherits
a column definition only once.  Assert the same in MergeAttributes()
and simplify a condition accordingly.

Similar definition exists about line 3068 in the same function.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAExHW5uOykuTC+C6R1yDSp=o8Q83jr8xJdZxgPkxfZ1Ue5RRGg@mail....

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d22d98c341713a260c1d821a62e83c19e27defa0

Modified Files
--------------
src/backend/commands/tablecmds.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)



Message-ID: <E1rPf9c-001ewP-JZ@gemulon.postgresql.org>
Permalink:  ../E1rPf9c-001ewP-JZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rPf9c-001ewP-JZ@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Assert that partition inherits from only one parent in MergeAttr
  In-Reply-To: <E1rPf9c-001ewP-JZ@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