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

Peter Eisentraut <peter@eisentraut.org>

Commit: d22d98c341713a260c1d821a62e83c19e27defa0
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-01-16T07:57:35Z
Releases: 17.0
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.gmail.com

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +8 −5

Discussion