]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix documentation of psql's ECHO all mode.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Jan 2015 23:35:21 +0000 (18:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Jan 2015 23:35:21 +0000 (18:35 -0500)
commitc0b5127c118000a94bf2af8ea425c89b0f2ef53d
tree2b702c123c6797fa9ea98818d6d9794dd7a5d862
parent8470cd4735470b4acd5b7c4620d28ad6907fd7f6
Fix documentation of psql's ECHO all mode.

"ECHO all" is ignored for interactive input, and has been for a very long
time, though possibly not for as long as the documentation has claimed the
opposite.  Fix that, and also note that empty lines aren't echoed, which
while dubious is another longstanding behavior (it's embedded in our
regression test files for one thing).  Per bug #12721 from Hans Ginzel.

In HEAD, also improve the code comments in this area, and suppress an
unnecessary fflush(stdout) when we're not echoing.  That would likely
be safe to back-patch, but I'll not risk it mere hours before a release
wrap.
doc/src/sgml/ref/psql-ref.sgml