]> granicus.if.org Git - postgresql/commit
Improve psql's \d output for partitioned indexes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Jul 2019 21:04:21 +0000 (17:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Jul 2019 21:04:21 +0000 (17:04 -0400)
commit24f62e93f314c107b4fa679869e5ba9adb2d545f
treeec506b1971fad927d2e0204c56531dc0c61684bd
parenteb5472da9f83c2e432ac27a053929947e354d20c
Improve psql's \d output for partitioned indexes.

Include partitioning information much as we do for partitioned tables.
(However, \d+ doesn't show the partition bounds, because those are
not stored for indexes.)

In passing, fix a couple of queries to look less messy in -E output.

Also, add some tests for \d on tables with nondefault tablespaces.
(Somebody previously added a rather silly number of tests for \d
on partitioned indexes, yet completely neglected other cases.)

Justin Pryzby, reviewed by Fabien Coelho

Discussion: https://postgr.es/m/20190422154902.GH14223@telsasoft.com
src/bin/psql/describe.c
src/test/regress/input/tablespace.source
src/test/regress/output/tablespace.source