psql: Add information in \d+ about foreign partitions and child tables
authorMichael Paquier <[email protected]>
Tue, 8 Nov 2022 05:19:09 +0000 (14:19 +0900)
committerMichael Paquier <[email protected]>
Tue, 8 Nov 2022 05:19:09 +0000 (14:19 +0900)
commitbd95816f74ad4cad3d2a3c160be426358d6cea51
tree34ebe6794901178af143127ec1a28951db150a36
parent28cc2976a9cf0ed661dbc55f49f669192cce1c89
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: https://postgr.es/m/CAB8KJ=iwzbEz2HR9EhNxQLVhMk2G_OYtQPJ9V=jWLadseggrOA@mail.gmail.com
src/bin/psql/describe.c
src/test/regress/expected/foreign_data.out