We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548d646 commit dd1dcf2Copy full SHA for dd1dcf2
src/bin/psql/print.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright 2000 by PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.30 2002/08/28 20:46:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.31 2002/09/01 23:30:46 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "print.h"
@@ -1017,8 +1017,9 @@ printTable(const char *title,
1017
lines = (col_count + 1) * row_count;
1018
else
1019
lines = row_count + 1;
1020
- if (!opt->tuples_only)
1021
- lines += 5;
+ if (footers && !opt->tuples_only)
+ for (ptr = footers; *ptr; ptr++)
1022
+ lines++;
1023
1024
result = ioctl(fileno(stdout), TIOCGWINSZ, &screen_size);
1025
if (result == -1 || lines > screen_size.ws_row)
0 commit comments