Document that, for psql -c, only the result of the last command is
authorBruce Momjian
Fri, 3 Aug 2012 18:02:22 +0000 (14:02 -0400)
committerBruce Momjian
Fri, 3 Aug 2012 18:02:22 +0000 (14:02 -0400)
returned, per report from Aleksey Tsalolikhin

Backpatch to 9.2 and 9.1.

doc/src/sgml/ref/psql-ref.sgml

index b6bf6a3ba8e199e93064b5a92f053de4080fef95..1ba5ea8dabc04d3c4a700323fcb951f4a9d0f009 100644 (file)
@@ -99,7 +99,8 @@ PostgreSQL documentation
        BEGIN/COMMIT commands included in the
        string to divide it into multiple transactions.  This is
        different from the behavior when the same string is fed to
-       psql's standard input.
+       psql's standard input.  Also, only
+       the result of the last SQL command is returned.