Add information about access method for partitioned relations in \dP+
authorMichael Paquier <michael@paquier.xyz>
Tue, 2 Jul 2024 00:01:38 +0000 (09:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 2 Jul 2024 00:01:38 +0000 (09:01 +0900)
commit978f38c771fb3a19fdd5cb73cb662441eb9e551c
treee3330f1b9af52eebe98367f5b77aca039347dc36
parentedadeb0710e838f6ce1f95973fae683a56fdba06
Add information about access method for partitioned relations in \dP+

Since 374c7a229042, it is possible to set a table AM on a partitioned
table.  This information was showing up already in psql with \d+, while
\dP+ provided no information.

This commit extends \dP+ to show the access method used by a partitioned
table or index, if set.

Author: Justin Pryzby
Discussion: https://postgr.es/m/ZkyivySXnbvOogZz@pryzbyj2023
src/bin/psql/describe.c