Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd14c85e

Browse files
committed
Fix materialized-view documentation oversights.
When materialized views were added, psql's \d commands were made totreat them as a separate object category ... but not everyplace in thedocumentation 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
1 parent1c25ef6 commitd14c85e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ testdb=>
10961096

10971097
<listitem>
10981098
<para>
1099-
For each relation (table, view, index, sequence, or foreign table)
1099+
For each relation (table, view, materialized view, index, sequence,
1100+
or foreign table)
11001101
or composite type matching the
11011102
<replaceable class="parameter">pattern</replaceable>, show all
11021103
columns, their types, the tablespace (if not the default) and any
@@ -1111,8 +1112,8 @@ testdb=&gt;
11111112

11121113
<para>
11131114
For some types of relation, <literal>\d</> shows additional information
1114-
for each column: column values for sequences, indexedexpression for
1115-
indexes and foreign data wrapper options for foreign tables.
1115+
for each column: column values for sequences, indexedexpressions for
1116+
indexes, and foreign data wrapper options for foreign tables.
11161117
</para>
11171118

11181119
<para>
@@ -1134,8 +1135,9 @@ testdb=&gt;
11341135
<para>
11351136
If <command>\d</command> is used without a
11361137
<replaceable class="parameter">pattern</replaceable> argument, it is
1137-
equivalent to <command>\dtvsE</command> which will show a list of
1138-
all visible tables, views, sequences and foreign tables.
1138+
equivalent to <command>\dtvmsE</command> which will show a list of
1139+
all visible tables, views, materialized views, sequences and
1140+
foreign tables.
11391141
This is purely a convenience measure.
11401142
</para>
11411143
</note>

‎src/bin/psql/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3288,7 +3288,6 @@ listDbRoleSettings(const char *pattern, const char *pattern2)
32883288
* s - sequences
32893289
* E - foreign table (Note: different from 'f', the relkind value)
32903290
* (any order of the above is fine)
3291-
* If tabtypes is empty, we default to \dtvsE.
32923291
*/
32933292
bool
32943293
listTables(constchar*tabtypes,constchar*pattern,boolverbose,boolshowSystem)
@@ -3305,6 +3304,7 @@ listTables(const char *tabtypes, const char *pattern, bool verbose, bool showSys
33053304
printQueryOptmyopt=pset.popt;
33063305
staticconstbooltranslate_columns[]= {false, false, true, false, false, false, false};
33073306

3307+
/* If tabtypes is empty, we default to \dtvmsE (but see also command.c) */
33083308
if (!(showTables||showIndexes||showViews||showMatViews||showSeq||showForeign))
33093309
showTables=showViews=showMatViews=showSeq=showForeign= true;
33103310

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp