postgresql/src/test/regress
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
..
data Improve key representation for GIN jsonb_ops, and fix existence-search bug. 2014-05-09 08:41:26 -04:00
expected Add pg_partition_tree to display information about partitions 2018-10-30 10:25:06 +09:00
input Fix crash in multi-insert COPY 2018-10-17 20:31:20 +02:00
output Fix crash in multi-insert COPY 2018-10-17 20:31:20 +02:00
sql Add pg_partition_tree to display information about partitions 2018-10-30 10:25:06 +09:00
.gitignore
GNUmakefile Put back parallel-safety guards in plpython and src/test/regress/. 2018-04-10 16:15:04 -04:00
Makefile
parallel_schedule Add pg_partition_tree to display information about partitions 2018-10-30 10:25:06 +09:00
pg_regress_main.c Clean up assorted misuses of snprintf()'s result value. 2018-08-15 16:29:31 -04:00
pg_regress.c Lower privilege level of programs calling regression_main 2018-10-20 09:02:36 -04:00
pg_regress.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
regress.c Refactor geometric functions and operators 2018-07-29 02:36:29 +02:00
regressplans.sh
resultmap Make float exponent output on Windows look the same as elsewhere. 2018-10-12 11:14:27 -04:00
serial_schedule Add pg_partition_tree to display information about partitions 2018-10-30 10:25:06 +09:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".