aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-16 06:58:12 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-16 06:58:12 +0000
commitbf2abf0dae2cebae5c66dcc3d68687d61aa5b4a3 (patch)
treeacc36fbf337956f50e9218a08ca11f5bb9302dbd
parente5eb8594464fbb5a6a104f9e78388778ce5bba37 (diff)
downloadpostgresql-bf2abf0dae2cebae5c66dcc3d68687d61aa5b4a3.tar.gz
postgresql-bf2abf0dae2cebae5c66dcc3d68687d61aa5b4a3.zip
fix: clean up formatting of \d tablename in psql
submitted by: Bruce Momjian (root@candle.pha.pa.us)
-rw-r--r--src/bin/psql/psql.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 76ca326d0f7..738827a8cec 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2 1996/07/16 06:37:28 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3 1996/07/16 06:58:12 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -321,9 +321,9 @@ tableDesc (PGconn* conn, char* table)
*/
printf ("\nTable = %s\n", table);
- printf ("+----------------------------------+----------------------------------+-------+\n");
- printf ("| Field | Type | Length|\n");
- printf ("+----------------------------------+----------------------------------+-------+\n");
+ printf ("+----------------------------------+----------------------------------+--------+\n");
+ printf ("| Field | Type | Length |\n");
+ printf ("+----------------------------------+----------------------------------+--------+\n");
/* next, print out the instances */
for (i=0; i < PQntuples(res); i++) {
@@ -355,13 +355,13 @@ tableDesc (PGconn* conn, char* table)
free(newname);
}
if (rsize > 0)
- printf ("%-6i |", rsize);
+ printf (" %-6i |", rsize);
else
- printf ("%-6s |", "var");
+ printf (" %-6s |", "var");
}
printf("\n");
}
- printf ("+----------------------------------+----------------------------------+-------+\n");
+ printf ("+----------------------------------+----------------------------------+--------+\n");
PQclear(res);
return (0);