Re: Properly page footers in psql

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Properly page footers in psql
Date: 2002-09-01 23:31:02
Message-ID: E17le4j-0002PT-00@hall.mail.mindspring.net
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

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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200208311637

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

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

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2002-09-02 00:14:11 Re: bytea operator bugs (was Re: [GENERAL] BYTEA, indexes
Previous Message Bruce Momjian 2002-09-01 23:30:26 Re: Properly page footers in psql