pgsql: Fix prologue of get_partition_ancestors()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix prologue of get_partition_ancestors()
Date: 2023-12-21 10:43:28
Message-ID: E1rGGWV-00BDmj-Ix@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix prologue of get_partition_ancestors()

The callers of this function assume that the first Oid in the list
returned by this function corresponds to the immediate parent and the
last on corresponds to the topmost parent. Make that explicit in the
function prologue.

Author: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAExHW5vCbATEmht861=G-BFPHNwLUqyeGa_=8-xibJ6Q1UxAeA@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/catalog/partition.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2023-12-21 12:57:59 pgsql: Fix BEFORE ROW trigger handling in cross-partition MERGE update.
Previous Message Peter Eisentraut 2023-12-21 09:11:22 pgsql: meson: Make gzip and tar optional