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

Michael Paquier <michael@paquier.xyz>

Commit: bd95816f74ad4cad3d2a3c160be426358d6cea51
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-11-08T05:19:09Z
Releases: 16.0
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

Files

PathChange+/−
src/bin/psql/describe.c modified +2 −0
src/test/regress/expected/foreign_data.out modified +18 −18

Discussion