Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bf2abf0

Browse files
committed
fix: clean up formatting of \d tablename in psql
submitted by: Bruce Momjian (root@candle.pha.pa.us)
1 parent e5eb859 commit bf2abf0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bin/psql/psql.c

+7-7
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.2 1996/07/16 06:37:28 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3 1996/07/16 06:58:12 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -321,9 +321,9 @@ tableDesc (PGconn* conn, char* table)
321321
*/
322322

323323
printf ("\nTable = %s\n", table);
324-
printf ("+----------------------------------+----------------------------------+-------+\n");
325-
printf ("| Field | Type | Length|\n");
326-
printf ("+----------------------------------+----------------------------------+-------+\n");
324+
printf ("+----------------------------------+----------------------------------+--------+\n");
325+
printf ("| Field | Type | Length |\n");
326+
printf ("+----------------------------------+----------------------------------+--------+\n");
327327

328328
/* next, print out the instances */
329329
for (i=0; i < PQntuples(res); i++) {
@@ -355,13 +355,13 @@ tableDesc (PGconn* conn, char* table)
355355
free(newname);
356356
}
357357
if (rsize > 0)
358-
printf ("%-6i |", rsize);
358+
printf (" %-6i |", rsize);
359359
else
360-
printf ("%-6s |", "var");
360+
printf (" %-6s |", "var");
361361
}
362362
printf("\n");
363363
}
364-
printf ("+----------------------------------+----------------------------------+-------+\n");
364+
printf ("+----------------------------------+----------------------------------+--------+\n");
365365

366366
PQclear(res);
367367
return (0);

0 commit comments

Comments
 (0)