Re: Properly page footers in psql - Mailing list pgsql-patches

From Greg Sabino Mullane
Subject Re: Properly page footers in psql
Date
Msg-id E17le4j-0002PT-00@hall.mail.mindspring.net
Whole thread Raw
In response to Properly page footers in psql  (greg@turnstep.com)
Responses Re: Properly page footers in psql  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message


Any word on this? Is there a disadvantage to not guessing
the number of lines and just sending everything to the pager
no matter what?

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

Greg Sabino Mullane  greg@turnstep.com
PGP Key: 0x14964AC8 200208311637

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE9cSpvvJuQZxSWSsgRAiunAKCN4+YpR5QmMyGIPmlTMAhj2ewSBACg7tvr
n0yEFMfJnXgyVdZkP/DZUH4=
=9zcO
-----END PGP SIGNATURE-----





pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: create or replace rule/view (fwd)
Next
From: Bruce Momjian
Date:
Subject: Re: Properly page footers in psql