diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-07-15 01:56:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-07-15 01:56:25 +0000 |
commit | 91dfa1af97b21a817ac4e4b5efdc510215c8774c (patch) | |
tree | 07e8e270884b99c2c61bf9f96f0951e11bc4bc39 /src/bin/psql/print.h | |
parent | d5fa19c6eeeeca1e6092344d8a83a2b9b0c8c7cb (diff) |
Fix \? and \pset pager handling. \? wasn't honoring pager before.
Diffstat (limited to 'src/bin/psql/print.h')
-rw-r--r-- | src/bin/psql/print.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h index 59c32830d22..bcb3495bc67 100644 --- a/src/bin/psql/print.h +++ b/src/bin/psql/print.h @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.12 2001/11/05 17:46:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.13 2002/07/15 01:56:25 momjian Exp $ */ #ifndef PRINT_H #define PRINT_H @@ -72,7 +72,12 @@ typedef struct _printQueryOpt * * It calls the printTable above with all the things set straight. */ -void - printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout); +void printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout); + +#ifndef __CYGWIN__ +#define DEFAULT_PAGER "more" +#else +#define DEFAULT_PAGER "less" +#endif #endif /* PRINT_H */ |