| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Assert that partition inherits from only one parent in MergeAttr |
| Date: | 2024-01-16 08:50:40 |
| Message-ID: | E1rPf9c-001ewP-JZ@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)bapat(dot)oss(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAExHW5uOykuTC+C6R1yDSp=o8Q83jr8xJdZxgPkxfZ1Ue5RRGg(at)mail(dot)gmail(dot)com
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2024-01-16 11:30:15 | pgsql: Don't test already-referenced pointer for nullness |
| Previous Message | Tom Lane | 2024-01-16 03:06:33 | Re: pgsql: Re-validate connection string in libpqrcv_connect(). |