Properly page footers in psql

From: greg(at)turnstep(dot)com
To: pgsql-patches(at)postgresql(dot)org
Subject: Properly page footers in psql
Date: 2002-08-14 16:31:11
Message-ID: 20020814163540.4DD7D47549E@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

Small (inline) patch to fix the annoying behavior of psql when the
footers are long (e.g. when there are a lot of foreign keys) and
the page scrolls past, without invoking the pager utility.

Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200208141153

Index: print.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/print.c,v
retrieving revision 1.28
diff -r1.28 print.c
1078,1079c1078,1080
< if (!opt->tuples_only)
< lines += 5;
---
> if (footers && !opt->tuples_only)
> for (ptr = footers; *ptr; ptr++)
> lines++;
1106d1106
<
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iEYEARECAAYFAj1aiFAACgkQvJuQZxSWSshYMQCcDcMHLVwA3h7xgH4YlxznRiy7
wsYAn1xpAWQloL3C2cUQY/zDUc2YxChm
=9jN8
-----END PGP SIGNATURE-----

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-08-14 17:57:40 Re: Documentation update (pg_get_fkeydef, current_database)
Previous Message Tom Lane 2002-08-14 16:18:53 Re: improve FOUND in PL/PgSQL