diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-05-08 17:04:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-05-08 17:04:26 +0000 |
commit | 5adf98ae24fe0bef54120f378ae5f75a4f69cc6c (patch) | |
tree | e0d44b00c34f6490fd12ef57f137c6eb72e64079 /src/bin/psql/print.h | |
parent | eb915caf92a6805740e949c3233ee32bc9676484 (diff) |
Add psql '\pset format wrapped' mode to wrap output to screen width, or
file/pipe output too if \pset columns' is set.
Bryce Nesbitt
Diffstat (limited to 'src/bin/psql/print.h')
-rw-r--r-- | src/bin/psql/print.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h index 984652d0fd9..da84343df96 100644 --- a/src/bin/psql/print.h +++ b/src/bin/psql/print.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.35 2008/01/01 19:45:56 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.36 2008/05/08 17:04:26 momjian Exp $ */ #ifndef PRINT_H #define PRINT_H @@ -21,6 +21,7 @@ enum printFormat PRINT_NOTHING = 0, /* to make sure someone initializes this */ PRINT_UNALIGNED, PRINT_ALIGNED, + PRINT_WRAPPED, PRINT_HTML, PRINT_LATEX, PRINT_TROFF_MS @@ -47,6 +48,8 @@ typedef struct _printTableOpt * decimal marker */ char *tableAttr; /* attributes for HTML <table ...> */ int encoding; /* character encoding */ + int env_columns; /* $COLUMNS on psql start, 0 is unset */ + int columns; /* target width for wrapped format */ } printTableOpt; |