pgsql: psql: Add information in \d+ about foreign partitions and child

Started by Michael Paquierover 3 years ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

psql: Add information in \d+ about foreign partitions and child tables

\d+ is already able to show if a partition or a child table is
"PARTITIONED" via its relkind, hence the addition of a keyword for
"FOREIGN" in the relation description is basically free.

Author: Ian Lawrence Barwick
Reviewed-by: Tom Lane, Michael Paquier
Discussion: /messages/by-id/CAB8KJ=iwzbEz2HR9EhNxQLVhMk2G_OYtQPJ9V=jWLadseggrOA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bd95816f74ad4cad3d2a3c160be426358d6cea51

Modified Files
--------------
src/bin/psql/describe.c | 2 ++
src/test/regress/expected/foreign_data.out | 36 +++++++++++++++---------------
2 files changed, 20 insertions(+), 18 deletions(-)