Clarification of psql's "-c" output - Mailing list pgsql-docs

From Tim Landscheidt
Subject Clarification of psql's "-c" output
Date
Msg-id m3myajxq21.fsf@lockfix.tim-landscheidt.de
Whole thread Raw
List pgsql-docs
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
|         <application>psql</application>'s standard input.
| +       Only the result of the <emphasis>last
| +       explicit</emphasis> SQL command (i. e. not a
| +       transaction wrapper added
| +       by <application>psql</application>) is displayed.
| +      </para>
| +      <para>
| +       If multiple <option>-c</option> options are given,
| +       only the <emphasis>last</emphasis> option is
| +       evaluated.
|        </para>
|        </listitem>
|      </varlistentry>
| [tim@lockfix ~/Desktop/Agenda/pgsql/doc/src/sgml/ref]$

TIA,
Tim

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Inheritance mention
Next
From: Bruce Momjian
Date:
Subject: Re: Inheritance mention