From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix crash with pg_partition_root |
Date: | 2019-03-22 08:33:26 |
Message-ID: | E1h7FcE-0006zx-AV@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix crash with pg_partition_root
Trying to call the function with the top-most parent of a partition tree
was leading to a crash. In this case the correct result is to return
the top-most parent itself.
Reported-by: Álvaro Herrera
Author: Michael Paquier
Reviewed-by: Amit Langote
Discussion: https://postgr.es/m/20190322032612.GA323@alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2ab6d28d233af17987ea323e3235b2bda89b4f2e
Modified Files
--------------
src/backend/utils/adt/partitionfuncs.c | 10 +++++-
src/test/regress/expected/partition_info.out | 50 ++++++++++++++++++++++++++++
src/test/regress/sql/partition_info.sql | 12 +++++++
3 files changed, 71 insertions(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-03-22 08:35:28 | Re: pgsql: Add pg_partition_root to display top-most parent of a partition |
Previous Message | Amit Langote | 2019-03-22 07:05:20 | Re: pgsql: Add pg_partition_root to display top-most parent of a partition |