From: William West <wwest@csc.com>
To: pgsql-interfaces@postgresql.org
Subject: ECPG - Clarfication of '-t', 'autocommit', BEGIN?
Date: Thu, 26 Sep 2002 13:57:40 -0400
Message-ID: <OF1567F4D5.8BDE1A20-ON85256C40.005F08F9@com> (raw)
The ecpg man page says that '-t' will turn autocommit 'on', that
the default is that otherwise a 'commit' statement is needed to
cause a 'commit'.
In a posting from December of 2001, there was a complaint
that issuing EXEC SQL BEGIN; immediately following
CONNECT returned "BEGIN: already a transaction in progress",
to which Michael Meskes replied that it is necessary to run ecpg
*with* the '-t' switch (or, as someone else said, issue 'exec sql set
autocommit to on') if you want to BEGIN your own transactions.
Am I wrong in thinking that BEGIN-(set of commands)
-COMMIT should be equivalent to 'start transaction
-perform sequence of commands-commit result of
sequence of commands'? Or does BEGIN become
superfluous when running *without* -t? Could someone
please clarify?
Thanks.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: wwest@csc.com
Subject: Re: ECPG - Clarfication of '-t', 'autocommit', BEGIN?
In-Reply-To: <OF1567F4D5.8BDE1A20-ON85256C40.005F08F9@com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox