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 54890a1db5364da9090ca27a50c9a47469d209ea..1beac9a1b7e8645115a3ca4de6f01156e5705f18 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.