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
This commit is contained in:
Andres Freund 2019-03-29 08:59:40 -07:00
parent ffa8444ce4
commit d3a5fc17eb
1 changed files with 2 additions and 0 deletions

View 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)