diff options
| author | Bruce Momjian <bruce@momjian.us> | 2005-06-09 15:27:27 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2005-06-09 15:27:27 +0000 |
| commit | 4a5cda7bba7c5aee9298f5bc3f287b299cdee634 (patch) | |
| tree | e6133c692122c96b78a4c360ce257225893c25bb /src/bin/psql/print.h | |
| parent | a31ad27fc5dc32a1453233575b3cf7b5c34cf515 (diff) | |
I've created a patch which adds support for troff "-ms" output to
psql. i.e. "\pset format troff-ms". The patch also corrects some
problems with the "latex" format, notably defining an extra column in
the output table, and correcting some alignment issues; it also
changes the output to match the border setting as documented in the
manual page and as shown with the "aligned" format.
The troff-ms output is mostly identical to the latex output allowing
for the differences between the two typesetters.
The output should be saved in a file and piped as follows:
cat file | tbl | troff -T ps -ms > file.ps
or
tbl file | troff -T ps -ms > file.ps
Because it contains tabs, you'll need to redirect psql output or use
"script", rather than pasting from a terminal window, due to the tabs
which can be replaced with spaces.
Roger Leigh
Diffstat (limited to 'src/bin/psql/print.h')
| -rw-r--r-- | src/bin/psql/print.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h index b30d302883a..8560ebd737f 100644 --- a/src/bin/psql/print.h +++ b/src/bin/psql/print.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.22 2005/01/01 05:43:08 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.23 2005/06/09 15:27:27 momjian Exp $ */ #ifndef PRINT_H #define PRINT_H @@ -21,7 +21,8 @@ enum printFormat PRINT_UNALIGNED, PRINT_ALIGNED, PRINT_HTML, - PRINT_LATEX + PRINT_LATEX, + PRINT_TROFF_MS /* add your favourite output format here ... */ }; |
