X-Original-To: pgsql-hackers@postgresql.org Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 95436475AE4 for ; Fri, 21 Mar 2003 13:06:35 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h2LI6OS20341; Fri, 21 Mar 2003 13:06:24 -0500 (EST) From: Bruce Momjian Message-Id: <200303211806.h2LI6OS20341@candle.pha.pa.us> Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign In-Reply-To: <14166.1048269607@sss.pgh.pa.us> To: Tom Lane Date: Fri, 21 Mar 2003 13:06:24 -0500 (EST) Cc: Peter Eisentraut , Alvaro Herrera , PostgreSQL Development X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200303/931 X-Sequence-Number: 37177 Tom Lane wrote: > Bruce Momjian writes: > > But isn't that like saying that the spec doesn't apply to libpq at all. > > Why would autocommit not apply but other queries specification apply? > > No, you're missing the point. Essentially all the client libraries > offer their own autocommit behavior on top of what the spec says. Well, which ones? jdbc (which prevers the server autocommit), ecpg, odbc (?), and Perl. Anyone else? > libpq is alone in not having any such client-side logic. So it's not > a foregone conclusion that we should implement autocommit on/off logic > on the server side as a substitute for adding it to libpq. We have > now tried doing it on the server side, and we are finding that we don't > like the side-effects; so it's time to revisit that decision. My concern is bloating the API for all languages based on libpq, and psql and stuff like that. Heck, even pgadmin would have to have a button for it because a SET couldn't control it. I know the server-side isn't optimal, but is the alternative worse? Also, if Peter wants clients to be able to just issue a query and know it commits, should we just disable setting autocommit in postgresql.conf and per-user/db, and force applications to turn it on explicitly? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073