Add pg_partition_root to display top-most parent of a partition tree
Michael Paquier <michael@paquier.xyz>
Add pg_partition_root to display top-most parent of a partition tree This is useful when looking at partition trees with multiple layers, and combined with pg_partition_tree, it provides the possibility to show up an entire tree by just knowing one member at any level. Author: Michael Paquier Reviewed-by: Álvaro Herrera, Amit Langote Discussion: https://postgr.es/m/20181207014015.GP2407@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +11 −0 |
| src/backend/utils/adt/partitionfuncs.c | modified | +65 −10 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +5 −0 |
| src/test/regress/expected/partition_info.out | modified | +58 −0 |
| src/test/regress/sql/partition_info.sql | modified | +13 −0 |
Documentation touched
Discussion
- Add pg_partition_root to get top-most parent of a partition tree 13 messages · 2018-12-07 → 2019-02-08