psql: Add support for \dpS and \zS.
authorDean Rasheed <[email protected]>
Sat, 7 Jan 2023 11:09:26 +0000 (11:09 +0000)
committerDean Rasheed <[email protected]>
Sat, 7 Jan 2023 11:09:26 +0000 (11:09 +0000)
commitd913928c9c5e905d0062d1e7237b7fb5fbde61ed
tree1936179c312e92dd4c97854bfad1565bcb5b1b3e
parent2b6df05461cb540d8f103dfe55f38efc09b4189b
psql: Add support for \dpS and \zS.

This allows an optional "S" modifier to be added to \dp and \z, to
have them include system objects in the list.

Note that this also changes the behaviour of a bare \dp or \z without
the "S" modifier to include temp objects in the list, and exclude
information_schema objects, making them consistent with other psql
meta-commands.

Nathan Bossart, reviewed by Maxim Orlov.

Discussion: https://postgr.es/m/20221206193606.GB3078082@nathanxps13
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/describe.h