Add access method names to \d[i|m|t]+ in psql
authorMichael Paquier <michael@paquier.xyz>
Wed, 2 Sep 2020 07:59:22 +0000 (16:59 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 2 Sep 2020 07:59:22 +0000 (16:59 +0900)
commit07f386ede026ae8c3f2adeba0c22139df19bf2ff
tree456a86e1a3d5e14b22b4a28b26c2aa72bbc839cf
parent01767533e37fa255722cc0088ed67a0309875963
Add access method names to \d[i|m|t]+ in psql

Listing a full set of relations with those psql meta-commands, without a
matching pattern, has never showed the access method associated with
each relation.  This commit adds the access method of tables, indexes
and matviews, masking it for relation kinds where it does not apply.

Note that when HIDE_TABLEAM is enabled, the information does not show
up.  This is available when connecting to a backend version of at least
12, where table AMs have been introduced.

Author: Georgios Kokolatos
Reviewed-by: Vignesh C, Michael Paquier, Justin Pryzby
Discussion: https://postgr.es/m/svaS1VTOEscES9CLKVTeKItjJP1EEJuBhTsA0ESOdlnbXeQSgycYwVlliL5zt8Jwcfo4ATYDXtEqsExxjkSkkhCSTCL8fnRgaCAJdr0unUg=@protonmail.com
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/describe.c
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql