pg_description cleanup.
authorBruce Momjian
Thu, 13 Nov 1997 03:36:42 +0000 (03:36 +0000)
committerBruce Momjian
Thu, 13 Nov 1997 03:36:42 +0000 (03:36 +0000)
src/bin/psql/psql.c
src/man/psql.1

index 8b2a993c4340e03a51af386a3a015c1632837f90..2928a414f1e7bd4d44989c6dafd682cbe358990d 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.102 1997/11/13 03:22:42 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.103 1997/11/13 03:36:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -225,7 +225,7 @@ slashUsage(PsqlSettings *pset)
    fprintf(fout, " \\connect   -- connect to new database (currently '%s')\n", PQdb(pset->db));
    fprintf(fout, " \\copy table {from | to} \n");
    fprintf(fout, " \\d [] -- list tables and indices in database or columns in 
, * for all\n");
-   fprintf(fout, " \\dc []- list comment for table, field, type, function, or operator.\n");
+   fprintf(fout, " \\dd []- list comment for table, field, type, function, or operator.\n");
    fprintf(fout, " \\di          -- list only indices in database\n");
    fprintf(fout, " \\ds          -- list only sequences in database\n");
    fprintf(fout, " \\dt          -- list only tables in database\n");
@@ -1698,7 +1698,7 @@ HandleSlashCmds(PsqlSettings *pset,
            break;
        case 'd':               /* \d describe tables or columns in a
                                 * table */
-           if (strncmp(cmd, "dc", 2) == 0)
+           if (strncmp(cmd, "dd", 2) == 0)
                                /* descriptions */
                objectDescription(pset, optarg+1, NULL);
            else if (strncmp(cmd, "di", 2) == 0)
index e335bdcaf56040703d52edf57cb80a90ce89d73b..a045685cb3658dbc625869226feb1f829ef67eac 100644 (file)
@@ -1,6 +1,6 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.13 1997/11/13 03:23:18 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.14 1997/11/13 03:36:42 momjian Exp $
 .TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
 .SH NAME
 psql \(em run the interactive query front-end
@@ -292,7 +292,7 @@ is specified, list the columns in
 If table name is
 .IR *,
 list all tables and column information for each tables.
-.IP "\edc object"
+.IP "\edd object"
 List the description of the table, table.column, type, operator, or aggregate.
 .IP "\edi"
 List only indexes.