I have discovered that psql \pset format does not display
"latex-longtable" as a valid value, e.g.:

        test=> \pset format kjasdf
        \pset: allowed formats are unaligned, aligned, wrapped, html, asciidoc, 
latex, troff-ms

With the attached patch, the latex-longtable value is properly displayed:

        test=> \pset format kjasdf
        \pset: allowed formats are unaligned, aligned, wrapped, html, asciidoc, 
latex, latex-longtable, troff-ms

Should this be fixed in 9.6 only or 9.5 too?

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
new file mode 100644
index 2728216..5eb1e88
*** a/src/bin/psql/command.c
--- b/src/bin/psql/command.c
*************** do_pset(const char *param, const char *v
*** 2484,2490 ****
  			popt->topt.format = PRINT_TROFF_MS;
  		else
  		{
! 			psql_error("\\pset: allowed formats are unaligned, aligned, wrapped, html, asciidoc, latex, troff-ms\n");
  			return false;
  		}
  
--- 2484,2490 ----
  			popt->topt.format = PRINT_TROFF_MS;
  		else
  		{
! 			psql_error("\\pset: allowed formats are unaligned, aligned, wrapped, html, asciidoc, latex, latex-longtable, troff-ms\n");
  			return false;
  		}
  
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to