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 8C04A5E46E8 for ; Mon, 23 Aug 2004 15:53:14 -0300 (ADT) 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 42517-05 for ; Mon, 23 Aug 2004 18:53:13 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 618705E46EA for ; Mon, 23 Aug 2004 15:53:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7NIr8Jp009815; Mon, 23 Aug 2004 14:53:10 -0400 (EDT) To: Tsirkin Evgeny Cc: pgsql-admin@postgresql.org Subject: Re: psql and autocommit In-reply-to: References: Comments: In-reply-to Tsirkin Evgeny message dated "Mon, 23 Aug 2004 16:21:33 +0300" Date: Mon, 23 Aug 2004 14:53:07 -0400 Message-ID: <9814.1093287187@sss.pgh.pa.us> From: Tom Lane 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: 200408/219 X-Sequence-Number: 14614 Tsirkin Evgeny writes: > I am using 7.3.4 > while executing psql -c the query is not commited > that is probably because i have setted the autocommit = false > However that is very unheandy - i have to add begin and > commit to my shell scripts. You have found one of the reasons we decided server-side autocommit was evil ... > Is there a way to avoid this ? Use 7.4. Note that autocommit is a psql feature not a server setting in 7.4. regards, tom lane