Fix crash with pg_partition_root
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/partitionfuncs.c | modified | +9 −1 |
| src/test/regress/expected/partition_info.out | modified | +50 −0 |
| src/test/regress/sql/partition_info.sql | modified | +12 −0 |
Discussion
Cited messages not in the archive:
20190322032612.GA323@alvherre.pgsql