From: Christian Fowler <spider@viovio.com>
To: pgsql-admin@postgresql.org
Subject: set AUTOCOMMIT OFF in psqlrc not having affect
Date: Sun, 17 Oct 2004 14:47:46 -0400 (EDT)
Message-ID: <Pine.LNX.4.61.0410171443000.13757@leda.steelsun.com> (raw)
I have \set AUTOCOMMIT OFF in my .psqlrc and it seems psql seems to not
have any effect. Am I missing something? I've been googling and googling
and seem a bit lost at this point.
[domain@host host]$ cat ~/.psqlrc
\set AUTOCOMMIT OFF
\echo 'AUTOCOMMIT is' :AUTOCOMMIT
\set PROMPT1 'host.%/%R%# '
\timing
*timing statments where trimmed below*
[domain@host host]$ psql
Welcome to psql 7.4.5, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
AUTOCOMMIT is OFF
Timing is on.
host.domain=# commit;
WARNING: there is no transaction in progress
COMMIT
host.domain=# update foo set foo_type_id = 3 where foo_id=200000234;
UPDATE 1
host.domain=# commit;
WARNING: there is no transaction in progress
COMMIT
host.domain=# update foo set foo_type_id = 3 where foo_id=200000234;
UPDATE 1
host.domain=# rollback;
WARNING: there is no transaction in progress
ROLLBACK
host.domain=# begin;
BEGIN
host.domain=# update foo set foo_type_id = 3 where foo_id=200000234;
UPDATE 1
host.domain=# rollback;
ROLLBACK
host.domain=# begin;
BEGIN
host.domain=# update foo set foo_type_id = 3 where foo_id=200000234;
UPDATE 1
host.domain=# rollback;
ROLLBACK
host.domain=# \q
[ \ /
[ >X< Christian Fowler | spider@viovio.com
[ / \ http://www.viovio.com | http://www.tikipro.org
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: spider@viovio.com
Subject: Re: set AUTOCOMMIT OFF in psqlrc not having affect
In-Reply-To: <Pine.LNX.4.61.0410171443000.13757@leda.steelsun.com>
References: <Pine.LNX.4.61.0410171443000.13757@leda.steelsun.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