mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Document \dg+ and \du+
The fact that \dg and \du take the + option was missing in the documentation. backpatched to 8.4 Author: Andreas Wenk <a.wenk@netzmeister-st-pauli.de>
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.225 2009/04/21 17:23:05 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.225.2.1 2009/07/24 19:35:26 petere Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -1124,13 +1124,15 @@ testdb=>
|
|||||||
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>\dg [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
<term><literal>\dg[+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Lists all database roles. If <replaceable
|
Lists all database roles. If <replaceable
|
||||||
class="parameter">pattern</replaceable> is specified, only
|
class="parameter">pattern</replaceable> is specified, only
|
||||||
those roles whose names match the pattern are listed.
|
those roles whose names match the pattern are listed.
|
||||||
(This command is now effectively the same as <literal>\du</>.)
|
(This command is now effectively the same as <literal>\du</literal>).
|
||||||
|
If the form <literal>\dg+</literal> is used, additional information
|
||||||
|
is shown about each role, including the comment for each role.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -1247,12 +1249,14 @@ testdb=>
|
|||||||
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>\du [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
<term><literal>\du[+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Lists all database roles. If <replaceable
|
Lists all database roles. If <replaceable
|
||||||
class="parameter">pattern</replaceable> is specified, only
|
class="parameter">pattern</replaceable> is specified, only
|
||||||
those roles whose names match the pattern are listed.
|
those roles whose names match the pattern are listed.
|
||||||
|
If the form <literal>\du+</literal> is used, additional information
|
||||||
|
is shown about each role, including the comment for each role.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.150 2009/06/11 14:49:08 momjian Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.150.2.1 2009/07/24 19:35:26 petere Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ slashUsage(unsigned short int pager)
|
|||||||
fprintf(output, _(" \\dFd[+] [PATTERN] list text search dictionaries\n"));
|
fprintf(output, _(" \\dFd[+] [PATTERN] list text search dictionaries\n"));
|
||||||
fprintf(output, _(" \\dFp[+] [PATTERN] list text search parsers\n"));
|
fprintf(output, _(" \\dFp[+] [PATTERN] list text search parsers\n"));
|
||||||
fprintf(output, _(" \\dFt[+] [PATTERN] list text search templates\n"));
|
fprintf(output, _(" \\dFt[+] [PATTERN] list text search templates\n"));
|
||||||
fprintf(output, _(" \\dg [PATTERN] list roles (groups)\n"));
|
fprintf(output, _(" \\dg[+] [PATTERN] list roles (groups)\n"));
|
||||||
fprintf(output, _(" \\di[S+] [PATTERN] list indexes\n"));
|
fprintf(output, _(" \\di[S+] [PATTERN] list indexes\n"));
|
||||||
fprintf(output, _(" \\dl list large objects, same as \\lo_list\n"));
|
fprintf(output, _(" \\dl list large objects, same as \\lo_list\n"));
|
||||||
fprintf(output, _(" \\dn[+] [PATTERN] list schemas\n"));
|
fprintf(output, _(" \\dn[+] [PATTERN] list schemas\n"));
|
||||||
@ -219,7 +219,7 @@ slashUsage(unsigned short int pager)
|
|||||||
fprintf(output, _(" \\ds[S+] [PATTERN] list sequences\n"));
|
fprintf(output, _(" \\ds[S+] [PATTERN] list sequences\n"));
|
||||||
fprintf(output, _(" \\dt[S+] [PATTERN] list tables\n"));
|
fprintf(output, _(" \\dt[S+] [PATTERN] list tables\n"));
|
||||||
fprintf(output, _(" \\dT[S+] [PATTERN] list data types\n"));
|
fprintf(output, _(" \\dT[S+] [PATTERN] list data types\n"));
|
||||||
fprintf(output, _(" \\du [PATTERN] list roles (users)\n"));
|
fprintf(output, _(" \\du[+] [PATTERN] list roles (users)\n"));
|
||||||
fprintf(output, _(" \\dv[S+] [PATTERN] list views\n"));
|
fprintf(output, _(" \\dv[S+] [PATTERN] list views\n"));
|
||||||
fprintf(output, _(" \\l[+] list all databases\n"));
|
fprintf(output, _(" \\l[+] list all databases\n"));
|
||||||
fprintf(output, _(" \\z [PATTERN] same as \\dp\n"));
|
fprintf(output, _(" \\z [PATTERN] same as \\dp\n"));
|
||||||
|
Reference in New Issue
Block a user