git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ffa8444)
Show table access methods as such in psql's \dA.
2019年3月29日 15:59:40 +0000 (08:59 -0700)
2019年3月29日 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


diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 8129e3ccbf5c49624abca38c8c2259af31725f57..2f8a4d752ab7c4f7ef201503a083d72e9250dc4e 100644 (file)
--- 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)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /