summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2019-03-29 15:59:40 +0000
committerAndres Freund2019-03-29 15:59:40 +0000
commitd3a5fc17ebdbeaec81bec1f41e304485b3292da3 (patch)
treef67e2cc4b323234d0da93c18ec0e3206b394f61f
parentffa8444ce4828108e49d961cfa64e31078d978f0 (diff)
Show table access methods as such in psql's \dA.
Previously we didn't display a type for table access methods. Author: Haribabu Kommi Discussion: CAJrrPGeeYOqP3hkZyohDx_8dot4zvPuPMDBmhJ=iC85cTBNeYw@mail.gmail.com
-rw-r--r--src/bin/psql/describe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 8129e3ccbf..2f8a4d752a 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -169,9 +169,11 @@ describeAccessMethods(const char *pattern, bool verbose)
"SELECT amname AS \"%s\",\n"
" CASE amtype"
" WHEN 'i' THEN '%s'"
+ " WHEN 't' THEN '%s'"
" END AS \"%s\"",
gettext_noop("Name"),
gettext_noop("Index"),
+ gettext_noop("Table"),
gettext_noop("Type"));
if (verbose)