Properly page footers in psql - Mailing list pgsql-patches

From greg@turnstep.com
Subject Properly page footers in psql
Date
Msg-id 20020814163540.4DD7D47549E@postgresql.org
Whole thread Raw
List 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@turnstep.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-----


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: improve FOUND in PL/PgSQL
Next
From: Bruce Momjian
Date:
Subject: Re: Documentation update (pg_get_fkeydef, current_database)