diff options
author | Bruce Momjian <bruce@momjian.us> | 2013-01-17 11:39:38 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2013-01-17 11:39:38 -0500 |
commit | b14f81bc9a65993129e93052634e358b310b8554 (patch) | |
tree | 04c07766616f07891b7a1ed22533a1eb7216c975 /src/bin/psql/command.c | |
parent | 8ef6961685b380b493a6e4b4e2e833de239c120e (diff) | |
download | postgresql-b14f81bc9a65993129e93052634e358b310b8554.tar.gz postgresql-b14f81bc9a65993129e93052634e358b310b8554.zip |
Add a latex-longtable output format to psql
latex longtable is more powerful than the 'tabular' output format
'latex' uses. Also add border=3 support to 'latex'.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 59f8b035511..740884ff3d8 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -2164,6 +2164,9 @@ _align2string(enum printFormat in) case PRINT_LATEX: return "latex"; break; + case PRINT_LATEX_LONGTABLE: + return "latex-longtable"; + break; case PRINT_TROFF_MS: return "troff-ms"; break; @@ -2197,6 +2200,8 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) popt->topt.format = PRINT_HTML; else if (pg_strncasecmp("latex", value, vallen) == 0) popt->topt.format = PRINT_LATEX; + else if (pg_strncasecmp("latex-longtable", value, vallen) == 0) + popt->topt.format = PRINT_LATEX_LONGTABLE; else if (pg_strncasecmp("troff-ms", value, vallen) == 0) popt->topt.format = PRINT_TROFF_MS; else |