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

Commit145bae2

Browse files
committed
pg_description cleanup.
1 parent5071ae2 commit145bae2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/bin/psql/psql.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.102 1997/11/13 03:22:42 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.103 1997/11/13 03:36:30 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -225,7 +225,7 @@ slashUsage(PsqlSettings *pset)
225225
fprintf(fout," \\connect <dbname|-> <user> -- connect to new database (currently '%s')\n",PQdb(pset->db));
226226
fprintf(fout," \\copy table {from | to} <fname>\n");
227227
fprintf(fout," \\d [<table>] -- list tables and indices in database or columns in <table>, * for all\n");
228-
fprintf(fout," \\dc [<object>]- list comment for table, field, type, function, or operator.\n");
228+
fprintf(fout," \\dd [<object>]- list comment for table, field, type, function, or operator.\n");
229229
fprintf(fout," \\di -- list only indices in database\n");
230230
fprintf(fout," \\ds -- list only sequences in database\n");
231231
fprintf(fout," \\dt -- list only tables in database\n");
@@ -1698,7 +1698,7 @@ HandleSlashCmds(PsqlSettings *pset,
16981698
break;
16991699
case'd':/* \d describe tables or columns in a
17001700
* table */
1701-
if (strncmp(cmd,"dc",2)==0)
1701+
if (strncmp(cmd,"dd",2)==0)
17021702
/* descriptions */
17031703
objectDescription(pset,optarg+1,NULL);
17041704
elseif (strncmp(cmd,"di",2)==0)

‎src/man/psql.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.13 1997/11/13 03:23:18 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.14 1997/11/13 03:36:42 momjian Exp $
44
.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
55
.SH NAME
66
psql\(em run the interactive query front-end
@@ -292,7 +292,7 @@ is specified, list the columns in
292292
If table name is
293293
.IR *,
294294
list all tables and column information for each tables.
295-
.IP"\edc object"
295+
.IP"\edd object"
296296
List the description of the table, table.column, type, operator, or aggregate.
297297
.IP"\edi"
298298
List only indexes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp