postgresql/src/backend
Michael Paquier d5eec4eefd Add pg_partition_tree to display information about partitions
This new function is useful to display a full tree of partitions with a
partitioned table given in output, and avoids the need of any complex
WITH RECURSIVE query when looking at partition trees which are
deep multiple levels.

It returns a set of records, one for each partition, containing the
partition's name, its immediate parent's name, a boolean value telling
if the relation is a leaf in the tree and an integer telling its level
in the partition tree with given table considered as root, beginning at
zero for the root, and incrementing by one each time the scan goes one
level down.

Author: Amit Langote
Reviewed-by: Jesper Pedersen, Michael Paquier, Robert Haas
Discussion: https://postgr.es/m/8d00e51a-9a51-ad02-d53e-ba6bf50b2e52@lab.ntt.co.jp
2018-10-30 10:25:06 +09:00
..
access Add pg_promote function 2018-10-25 09:46:00 +09:00
bootstrap Install a check for mis-linking of src/port and src/common functions. 2018-09-09 12:23:23 -04:00
catalog Add pg_promote function 2018-10-25 09:46:00 +09:00
commands Remove get_attidentity() 2018-10-23 14:47:14 +02:00
executor Improve some comments related to executor result relations. 2018-10-17 16:41:00 -04:00
foreign Correct constness of a few variables. 2018-10-15 21:01:14 -07:00
jit Move TupleTableSlots boolean member into one flag variable. 2018-10-15 18:23:25 -07:00
lib Remove incorrect comment in dshash.c. 2018-10-29 12:57:55 +13:00
libpq Server-side fix for delayed NOTIFY and SIGTERM processing. 2018-10-19 21:39:21 -04:00
main Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Correct attach/detach logic for FKs in partitions 2018-10-12 12:37:37 -03:00
optimizer Correct constness of system attributes in heap.c & prerequisites. 2018-10-16 09:44:43 -07:00
parser Remove get_attidentity() 2018-10-23 14:47:14 +02:00
partitioning Centralize executor's opening/closing of Relations for rangetable entries. 2018-10-04 14:03:42 -04:00
po Translation updates 2018-06-25 12:37:18 +02:00
port Convert elog.c's useful_strerror() into a globally-used strerror wrapper. 2018-09-26 11:06:42 -04:00
postmaster Add pg_promote function 2018-10-25 09:46:00 +09:00
regex Clean up warnings from -Wimplicit-fallthrough. 2018-05-01 19:35:08 -04:00
replication Correct constness of a few variables. 2018-10-15 21:01:14 -07:00
rewrite Change rewriter/planner/executor/plancache to depend on RTE rellockmode. 2018-10-02 14:43:09 -04:00
snowball Sync our Snowball stemmer dictionaries with current upstream. 2018-09-24 17:29:38 -04:00
statistics Fix typos. 2018-08-27 09:32:59 +12:00
storage Correct constness of a few variables. 2018-10-15 21:01:14 -07:00
tcop Server-side fix for delayed NOTIFY and SIGTERM processing. 2018-10-19 21:39:21 -04:00
tsearch Hand code string to integer conversion for performance. 2018-07-22 14:58:23 -07:00
utils Add pg_partition_tree to display information about partitions 2018-10-30 10:25:06 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Refactor dlopen() support 2018-09-06 11:33:04 +02:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00