I've created a patch which adds support for troff "-ms" output to
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/psql-ref.sgml | modified | +5 −4 |
| src/bin/psql/command.c | modified | +7 −2 |
| src/bin/psql/print.c | modified | +214 −1 |
| src/bin/psql/print.h | modified | +3 −2 |