aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-19 18:32:22 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-19 18:32:22 -0400
commit54d4d818ddabe18d1c5ab94fd97b3ca9a3675b62 (patch)
tree79f5f4c5fca6d2e0a0b1d2d695327a728b431cd7 /src
parent4fc274dd8c1d9b5a3ae7196b726c082a39a66384 (diff)
downloadpostgresql-54d4d818ddabe18d1c5ab94fd97b3ca9a3675b62.tar.gz
postgresql-54d4d818ddabe18d1c5ab94fd97b3ca9a3675b62.zip
Fix materialized-view documentation oversights.
When materialized views were added, psql's \d commands were made to treat them as a separate object category ... but not everyplace in the documentation or comments got the memo. Noted by David Johnston. Back-patch to 9.3 where matviews came in. Discussion: https://postgr.es/m/CAKFQuwb27M3VXRhHErjCpkWwN9eKThbqWb1=trtoXi9_ejqPXQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index c4c538186f0..bf911f658bf 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -2895,7 +2895,6 @@ listDbRoleSettings(const char *pattern, const char *pattern2)
* s - sequences
* E - foreign table (Note: different from 'f', the relkind value)
* (any order of the above is fine)
- * If tabtypes is empty, we default to \dtvsE.
*/
bool
listTables(const char *tabtypes, const char *pattern, bool verbose, bool showSystem)
@@ -2912,6 +2911,7 @@ listTables(const char *tabtypes, const char *pattern, bool verbose, bool showSys
printQueryOpt myopt = pset.popt;
static const bool translate_columns[] = {false, false, true, false, false, false, false};
+ /* If tabtypes is empty, we default to \dtvmsE (but see also command.c) */
if (!(showTables || showIndexes || showViews || showMatViews || showSeq || showForeign))
showTables = showViews = showMatViews = showSeq = showForeign = true;