mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Add the new psql command \drds to the psql docs, help and tab completion.
I also thank Bernd Helmle for the documentation help on the previous settings patch, which I forgot on the commit message.
This commit is contained in:
parent
eab94d8182
commit
474f825574
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.230 2009/10/05 19:24:34 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.231 2009/10/08 16:34:00 alvherre Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -1265,6 +1265,25 @@ testdb=>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>\drds [ <replaceable class="parameter">role-pattern</replaceable> [ <replaceable class="parameter">database-pattern </replaceable> ] ]</literal></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Lists defined configuration settings. These settings can be role-specific,
|
||||||
|
database-specific, or both. <literal>role-pattern</literal> and
|
||||||
|
<literal>database-pattern</literal> are used to select
|
||||||
|
specific roles and database to list, respectively; if omitted, or * is specified,
|
||||||
|
all settings are listed, including those not role-specific or database-specific,
|
||||||
|
respectively.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The <xref linkend="sql-alterrole" endterm="sql-alterrole-title"> and
|
||||||
|
<xref linkend="sql-alterdatabase" endterm="sql-alterdatabase-title">
|
||||||
|
commands are used to define per-database role configuration settings.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>\dT[S+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
<term><literal>\dT[S+] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
||||||
|
@ -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.153 2009/10/05 19:24:46 tgl Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.154 2009/10/08 16:34:01 alvherre Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -217,6 +217,7 @@ slashUsage(unsigned short int pager)
|
|||||||
fprintf(output, _(" \\dn[+] [PATTERN] list schemas\n"));
|
fprintf(output, _(" \\dn[+] [PATTERN] list schemas\n"));
|
||||||
fprintf(output, _(" \\do[S] [PATTERN] list operators\n"));
|
fprintf(output, _(" \\do[S] [PATTERN] list operators\n"));
|
||||||
fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
|
fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
|
||||||
|
fprintf(output, _(" \\drds [PATRN1 [PATRN2]] list per-database role settings\n"));
|
||||||
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"));
|
||||||
|
@ -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/tab-complete.c,v 1.185 2009/08/02 22:14:52 tgl Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.186 2009/10/08 16:34:01 alvherre Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
@ -629,7 +629,7 @@ psql_completion(char *text, int start, int end)
|
|||||||
"\\a", "\\connect", "\\C", "\\cd", "\\copy", "\\copyright",
|
"\\a", "\\connect", "\\C", "\\cd", "\\copy", "\\copyright",
|
||||||
"\\d", "\\da", "\\db", "\\dc", "\\dC", "\\dd", "\\dD", "\\des", "\\deu", "\\dew", "\\df",
|
"\\d", "\\da", "\\db", "\\dc", "\\dC", "\\dd", "\\dD", "\\des", "\\deu", "\\dew", "\\df",
|
||||||
"\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl",
|
"\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl",
|
||||||
"\\dn", "\\do", "\\dp", "\\ds", "\\dS", "\\dt", "\\dT", "\\dv", "\\du",
|
"\\dn", "\\do", "\\dp", "\\drds", "\\ds", "\\dS", "\\dt", "\\dT", "\\dv", "\\du",
|
||||||
"\\e", "\\echo", "\\ef", "\\encoding",
|
"\\e", "\\echo", "\\ef", "\\encoding",
|
||||||
"\\f", "\\g", "\\h", "\\help", "\\H", "\\i", "\\l",
|
"\\f", "\\g", "\\h", "\\help", "\\H", "\\i", "\\l",
|
||||||
"\\lo_import", "\\lo_export", "\\lo_list", "\\lo_unlink",
|
"\\lo_import", "\\lo_export", "\\lo_list", "\\lo_unlink",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user