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

Commit6deb649

Browse files
committed
Add '+' mention in \? help. More clean of \? to do.
1 parentec11403 commit6deb649

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

‎src/bin/psql/describe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000-2002 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.64 2002/08/24 15:00:46 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.65 2002/08/27 18:28:28 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"describe.h"
@@ -293,7 +293,7 @@ describeOperators(const char *pattern)
293293
* for \l, \list, and -l switch
294294
*/
295295
bool
296-
listAllDbs(booldesc)
296+
listAllDbs(boolverbose)
297297
{
298298
PGresult*res;
299299
PQExpBufferDatabuf;
@@ -310,7 +310,7 @@ listAllDbs(bool desc)
310310
",\n pg_catalog.pg_encoding_to_char(d.encoding) as \"%s\"",
311311
_("Encoding"));
312312
#endif
313-
if (desc)
313+
if (verbose)
314314
appendPQExpBuffer(&buf,
315315
",\n pg_catalog.obj_description(d.oid, 'pg_database') as \"%s\"",
316316
_("Description"));

‎src/bin/psql/describe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000-2002 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.17 2002/08/10 03:56:24 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.18 2002/08/27 18:28:29 momjian Exp $
77
*/
88
#ifndefDESCRIBE_H
99
#defineDESCRIBE_H
@@ -35,7 +35,7 @@ boolobjectDescription(const char *pattern);
3535
booldescribeTableDetails(constchar*pattern,boolverbose);
3636

3737
/* \l */
38-
boollistAllDbs(booldesc);
38+
boollistAllDbs(boolverbose);
3939

4040
/* \dt, \di, \ds, \dS, etc. */
4141
boollistTables(constchar*tabtypes,constchar*pattern,boolverbose);

‎src/bin/psql/help.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.54 2002/08/10 19:35:01 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.55 2002/08/27 18:28:29 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"print.h"
@@ -211,17 +211,17 @@ slashUsage(bool pager)
211211
fprintf(output,_(" \\cd [DIR] change the current working directory\n"));
212212
fprintf(output,_(" \\copy ... perform SQL COPY with data stream to the client host\n"));
213213
fprintf(output,_(" \\copyright show PostgreSQL usage and distribution terms\n"));
214-
fprintf(output,_(" \\d [NAME] describe table (or view, index, sequence)\n"));
215-
fprintf(output,_(" \\d{t|i|s|v|S} [PATTERN]\n"));
214+
fprintf(output,_(" \\d [NAME] describe table, index, sequence, or view\n"));
215+
fprintf(output,_(" \\d{t|i|s|v|S} [PATTERN] (add '+' for more detail)\n"));
216216
fprintf(output,_(" list tables/indexes/sequences/views/system tables\n"));
217217
fprintf(output,_(" \\da [PATTERN] list aggregate functions\n"));
218218
fprintf(output,_(" \\dd [PATTERN] show comment for object\n"));
219219
fprintf(output,_(" \\dD [PATTERN] list domains\n"));
220-
fprintf(output,_(" \\df [PATTERN] list functions\n"));
220+
fprintf(output,_(" \\df [PATTERN] list functions (add '+' for more detail)\n"));
221221
fprintf(output,_(" \\do [NAME] list operators\n"));
222222
fprintf(output,_(" \\dl list large objects, same as lo_list\n"));
223223
fprintf(output,_(" \\dp [PATTERN] list table access privileges\n"));
224-
fprintf(output,_(" \\dT [PATTERN] list data types\n"));
224+
fprintf(output,_(" \\dT [PATTERN] list data types (add '+' for more detail)\n"));
225225
fprintf(output,_(" \\du [PATTERN] list users\n"));
226226
fprintf(output,_(" \\e [FILE] edit the query buffer (or file) with external editor\n"));
227227
fprintf(output,_(" \\echo [STRING] write string to standard output\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp