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

Commit5e22994

Browse files
committed
Document \dg+ and \du+
The fact that \dg and \du take the + option was missing in the documentation.backpatched to 8.4Author: Andreas Wenk <a.wenk@netzmeister-st-pauli.de>
1 parentcea80e7 commit5e22994

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.225 2009/04/21 17:23:05 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.226 2009/07/24 19:35:44 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -1124,13 +1124,15 @@ testdb=&gt;
11241124

11251125

11261126
<varlistentry>
1127-
<term><literal>\dg [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
1127+
<term><literal>\dg[+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
11281128
<listitem>
11291129
<para>
11301130
Lists all database roles. If <replaceable
11311131
class="parameter">pattern</replaceable> is specified, only
11321132
those roles whose names match the pattern are listed.
1133-
(This command is now effectively the same as <literal>\du</>.)
1133+
(This command is now effectively the same as <literal>\du</literal>).
1134+
If the form <literal>\dg+</literal> is used, additional information
1135+
is shown about each role, including the comment for each role.
11341136
</para>
11351137
</listitem>
11361138
</varlistentry>
@@ -1247,12 +1249,14 @@ testdb=&gt;
12471249

12481250

12491251
<varlistentry>
1250-
<term><literal>\du [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
1252+
<term><literal>\du[+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
12511253
<listitem>
12521254
<para>
12531255
Lists all database roles. If <replaceable
12541256
class="parameter">pattern</replaceable> is specified, only
12551257
those roles whose names match the pattern are listed.
1258+
If the form <literal>\du+</literal> is used, additional information
1259+
is shown about each role, including the comment for each role.
12561260
</para>
12571261
</listitem>
12581262
</varlistentry>

‎src/bin/psql/help.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.150 2009/06/11 14:49:08 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.151 2009/07/24 19:35:44 petere Exp $
77
*/
88
#include"postgres_fe.h"
99

@@ -210,7 +210,7 @@ slashUsage(unsigned short int pager)
210210
fprintf(output,_(" \\dFd[+] [PATTERN] list text search dictionaries\n"));
211211
fprintf(output,_(" \\dFp[+] [PATTERN] list text search parsers\n"));
212212
fprintf(output,_(" \\dFt[+] [PATTERN] list text search templates\n"));
213-
fprintf(output,_(" \\dg [PATTERN] list roles (groups)\n"));
213+
fprintf(output,_(" \\dg[+] [PATTERN] list roles (groups)\n"));
214214
fprintf(output,_(" \\di[S+] [PATTERN] list indexes\n"));
215215
fprintf(output,_(" \\dl list large objects, same as \\lo_list\n"));
216216
fprintf(output,_(" \\dn[+] [PATTERN] list schemas\n"));
@@ -219,7 +219,7 @@ slashUsage(unsigned short int pager)
219219
fprintf(output,_(" \\ds[S+] [PATTERN] list sequences\n"));
220220
fprintf(output,_(" \\dt[S+] [PATTERN] list tables\n"));
221221
fprintf(output,_(" \\dT[S+] [PATTERN] list data types\n"));
222-
fprintf(output,_(" \\du [PATTERN] list roles (users)\n"));
222+
fprintf(output,_(" \\du[+] [PATTERN] list roles (users)\n"));
223223
fprintf(output,_(" \\dv[S+] [PATTERN] list views\n"));
224224
fprintf(output,_(" \\l[+] list all databases\n"));
225225
fprintf(output,_(" \\z [PATTERN] same as \\dp\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp