X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A078CD1B8C4 for ; Mon, 8 Dec 2003 21:16:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98712-07 for ; Mon, 8 Dec 2003 17:16:01 -0400 (AST) Received: from bramble.mmrd.com (unknown [65.217.53.66]) by svr1.postgresql.org (Postfix) with ESMTP id 5B0A6D1B474 for ; Mon, 8 Dec 2003 17:15:58 -0400 (AST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by bramble.mmrd.com (8.12.8/8.12.8) with ESMTP id hB8KQqcM023882; Mon, 8 Dec 2003 15:26:52 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id hB8LFol30086; Mon, 8 Dec 2003 16:15:52 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id XT875XY4; Mon, 8 Dec 2003 16:15:48 -0500 Subject: Re: Auto commit Off how will it effect us ? From: Robert Treat To: Sai Hertz And Control Systems Cc: pgsql-admin@postgresql.org In-Reply-To: <3FD2EABA.1010400@sancharnet.in> References: <3FD2EABA.1010400@sancharnet.in> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 08 Dec 2003 16:15:50 -0500 Message-Id: <1070918150.16407.4406.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/91 X-Sequence-Number: 11599 I think you have misunderstood... autocommit works as it always has in 7.4, the difference is that the logic to turn it off is now left to the client side instead of trying to manage it within the server. ie. phppgadmin=# select version(); version ------------------------------------------------------------- PostgreSQL 7.4 on i586-pc-linux-gnu, compiled by GCC 2.95.3 (1 row) phppgadmin=# set autocommit = off; ERROR: SET AUTOCOMMIT TO OFF is no longer supported phppgadmin=# Of course PostgreSQL is open source, so I always recommend for folks to do a test installation and test there apps out just to be on the safe side. Robert Treat On Sun, 2003-12-07 at 03:54, Sai Hertz And Control Systems wrote: > Dear all , > > Permit me to gain some of your most valuable knowledge ........... > > Our intrAnet server has the following spec > 1. RH 9.0 > 2. Postgresql 7.3.4 > 3. PHP 4.3.3 > 4. GCC 3.2.2 > > Till date my front end language (PHP) use to simply pass the data to > postgresql in case of insert and > update we were not using > 1 BEGIN COMMIT block in PHP till date thanks to auto-commit-ON in postgreql > 2. ROLLBACK script in PHP script > > > And now when our company has decided to switch over to postgresql 7.4 > we have some doubt > 1. Do we have to include BEGIN and COMMIT block around the insert > process . (Because Postgresql 7.4 has auto-commit-OFF) in our PHP scripts > 2. Not only this do we also have to port the pgSQL functions which use > to do inserts into a third table such that > data gets committed on function execution > > > Please provide us any kinda information so that we can happily switch to > postgressql 7.4 > > > > Regards, > V Kashyap > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings -- Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL