psql: Support zero byte field and record separators

Peter Eisentraut <peter_e@gmx.net>

Commit: 169c8a911260bd5a8b6910c458afa57a1ae29627
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-02-09T18:20:15Z
Releases: 9.2.0
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

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +41 −0
src/bin/psql/command.c modified +34 −7
src/bin/psql/help.c modified +6 −2
src/bin/psql/print.c modified +40 −28
src/bin/psql/print.h modified +8 −2
src/bin/psql/startup.c modified +25 −7