X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09B4432A0B5 for ; Sun, 17 Oct 2004 19:48:36 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04550-01 for ; Sun, 17 Oct 2004 18:48:31 +0000 (GMT) Received: from leda.steelsun.com (dsl093-240-204.ral1.dsl.speakeasy.net [66.93.240.204]) by svr1.postgresql.org (Postfix) with ESMTP id B6FC732A0A2 for ; Sun, 17 Oct 2004 19:47:48 +0100 (BST) Received: from leda.steelsun.com (localhost [127.0.0.1]) by leda.steelsun.com (8.12.11/8.12.8) with ESMTP id i9HIlldv010759 for ; Sun, 17 Oct 2004 14:47:47 -0400 Received: from localhost (cfowler@localhost) by leda.steelsun.com (8.12.11/8.12.11/Submit) with ESMTP id i9HIlk9M010756 for ; Sun, 17 Oct 2004 14:47:47 -0400 X-Authentication-Warning: leda.steelsun.com: cfowler owned process doing -bs Date: Sun, 17 Oct 2004 14:47:46 -0400 (EDT) From: Christian Fowler X-X-Sender: cfowler@leda.steelsun.com To: pgsql-admin@postgresql.org Subject: set AUTOCOMMIT OFF in psqlrc not having affect Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/199 X-Sequence-Number: 15192 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