Properly page footers in psql

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Properly page footers in psql
Дата
Msg-id 20020814163540.4DD7D47549E@postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: improve FOUND in PL/PgSQL
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Documentation update (pg_get_fkeydef, current_database)