Fix prologue of get_partition_ancestors()
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Dec 2023 10:42:12 +0000 (11:42 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Dec 2023 10:42:12 +0000 (11:42 +0100)
commite557db106ef69413edb75c362191084ee73a0f55
treeb6ca3c5ace2eba3ab2addd230195d250bb547ef4
parent9ca6e7b9411e36488ef539a2c1f6846ac92a7072
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.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAExHW5vCbATEmht861=G-BFPHNwLUqyeGa_=8-xibJ6Q1UxAeA@mail.gmail.com
src/backend/catalog/partition.c