diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-02-09 20:15:48 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-02-09 20:20:15 +0200 |
commit | 169c8a911260bd5a8b6910c458afa57a1ae29627 (patch) | |
tree | bfd5b4ee2f9ab327fa19337492b36794b3f31d25 /src/bin/psql/help.c | |
parent | dd7c84185c160bb0d95bd265182f24f1f6c21924 (diff) | |
download | postgresql-169c8a911260bd5a8b6910c458afa57a1ae29627.tar.gz postgresql-169c8a911260bd5a8b6910c458afa57a1ae29627.zip |
psql: Support zero byte field and record separators
Add new psql settings and command-line options to support setting the
field and record separators for unaligned output to a zero byte, for
easier interfacing with other shell tools.
reviewed by Abhijit Menon-Sen
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 172fd0c733b..eff0ea53b69 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -123,6 +123,10 @@ usage(void) printf(_(" -t, --tuples-only print rows only\n")); printf(_(" -T, --table-attr=TEXT set HTML table tag attributes (e.g., width, border)\n")); printf(_(" -x, --expanded turn on expanded table output\n")); + printf(_(" -z, --field-separator-zero\n" + " set field separator to zero byte\n")); + printf(_(" -0, --record-separator-zero\n" + " set record separator to zero byte\n")); printf(_("\nConnection options:\n")); /* Display default host */ @@ -237,8 +241,8 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\H toggle HTML output mode (currently %s)\n"), ON(pset.popt.topt.format == PRINT_HTML)); fprintf(output, _(" \\pset NAME [VALUE] set table output option\n" - " (NAME := {format|border|expanded|fieldsep|footer|null|\n" - " numericlocale|recordsep|tuples_only|title|tableattr|pager})\n")); + " (NAME := {format|border|expanded|fieldsep|fieldsep_zero|footer|null|\n" + " numericlocale|recordsep|recordsep_zero|tuples_only|title|tableattr|pager})\n")); fprintf(output, _(" \\t [on|off] show only rows (currently %s)\n"), ON(pset.popt.topt.tuples_only)); fprintf(output, _(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n")); |