Clarification of psql's "-c" output
Clarification of psql's "-c" output
От:
Tim Landscheidt <tim@tim-landscheidt.de>
Дата:
Hi, as a user, I'd appreciate if psql's execution and output be- haviour when using the "-c" option would be explained more detailed in the documentation. Based on psql 8.*3*.7 (don't know if that will change in 8.4), I'd suggest: | [tim@lockfix ~/Desktop/Agenda/pgsql/doc/src/sgml/ref]$ cvs diff -u psql-ref.sgml | Index: psql-ref.sgml | =================================================================== | RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v | retrieving revision 1.223 | diff -u -r1.223 psql-ref.sgml | --- psql-ref.sgml 8 Apr 2009 22:29:30 -0000 1.223 | +++ psql-ref.sgml 14 Apr 2009 14:30:17 -0000 | @@ -99,6 +99,15 @@ | string to divide it into multiple transactions. This is | different from the behavior when the same string is fed to | psql's standard input. | + Only the result of the last | + explicit SQL command (i. e. not a | + transaction wrapper added | + by psql) is displayed. | + | + | + If multiple options are given, | + only the last option is | + evaluated. | | | | [tim@lockfix ~/Desktop/Agenda/pgsql/doc/src/sgml/ref]$ TIA, Tim