X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3B4E18BA0EA for ; Mon, 14 Feb 2005 09:34:31 +0000 (GMT) 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 58554-08 for ; Mon, 14 Feb 2005 09:34:13 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id E94918B9F06 for ; Mon, 14 Feb 2005 09:34:12 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j1E9Y4k7026318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Feb 2005 02:34:06 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j1E9Y4NH004693; Mon, 14 Feb 2005 02:34:04 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j1E9Y3Lx004692; Mon, 14 Feb 2005 02:34:04 -0700 (MST) (envelope-from mfuhr) Date: Mon, 14 Feb 2005 02:34:03 -0700 From: Michael Fuhr To: Hasnul Fadhly bin Hasan Cc: pgsql-performance@postgresql.org Subject: Re: Autocommit Message-ID: <20050214093403.GA4629@winnie.fuhr.org> References: <42105AD0.2010803@mimos.my> <20050214084703.GA4038@winnie.fuhr.org> <42106837.3020103@mimos.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42106837.3020103@mimos.my> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/208 X-Sequence-Number: 10537 On Mon, Feb 14, 2005 at 04:58:31PM +0800, Hasnul Fadhly bin Hasan wrote: > Thanks for the reply. I am using postgres 7.4.5 client. There's one > that is using 7.4.1 client. I'm not sure if there would be any difference. > When i use psql and check the status of autocommit, it is set to > enable. I'm not sure if libpq and psql uses the same defaults. As far as I can tell, libpq doesn't have an autocommit setting -- it just sends statements on behalf of the application. Clients that allow the user to disable autocommit presumably do so by implicitly sending BEGIN statements to start new transactions. -- Michael Fuhr http://www.fuhr.org/~mfuhr/