Show table access methods as such in psql's \dA.
authorAndres Freund
Fri, 29 Mar 2019 15:59:40 +0000 (08:59 -0700)
committerAndres Freund
Fri, 29 Mar 2019 15:59:40 +0000 (08:59 -0700)
Previously we didn't display a type for table access methods.

Author: Haribabu Kommi
Discussion: CAJrrPGeeYOqP3hkZyohDx_8dot4zvPuPMDBmhJ=iC85cTBNeYw@mail.gmail.com

src/bin/psql/describe.c

index 8129e3ccbf5c49624abca38c8c2259af31725f57..2f8a4d752ab7c4f7ef201503a083d72e9250dc4e 100644 (file)
@@ -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)