X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7752F3A3C3B for ; Tue, 23 Nov 2004 15:48:25 +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 95433-10 for ; Tue, 23 Nov 2004 15:48:12 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 30BDE3A3F1C for ; Tue, 23 Nov 2004 15:48:15 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iANFm9rx026958; Tue, 23 Nov 2004 10:48:09 -0500 (EST) To: Oliver Jowett Cc: pg@fastcrypt.com, Barry Lind , pgsql-jdbc@postgresql.org Subject: Re: When running with autocommit false only the first BEGIN In-reply-to: <41A32A7D.2010102@opencloud.com> References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.com> <41A32762.4000403@fastcrypt.com> <41A32A7D.2010102@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Wed, 24 Nov 2004 01:18:05 +1300" Date: Tue, 23 Nov 2004 10:48:09 -0500 Message-ID: <26957.1101224889@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: 200411/188 X-Sequence-Number: 11610 Oliver Jowett writes: > Dave Cramer wrote: >> That certainly doesn't seem acceptable. As Barry points out people will >> really be in the dark when their code doesn't work. > There's nothing much the driver can do about it other than not using the > new features of V3. This needs a server-side fix. Step right up ;-) > See http://archives.postgresql.org/pgsql-hackers/2004-05/msg01173.php > for past discussion. I looked at fixing it briefly but didn't have time > to put together a patch. I think the code changes would be minimal, the hard part is agreeing on desirable behavior. From the point of view of "logging what actually happened", logging at Execute would make sense; but as Oliver noted in the above thread, that would lose the ability to log statements with parse errors, which is not good either. And what about being able to see the actual parameters sent in Bind? Also it would be good to think about a saner behavior for logging statements executed via SPI (ie plpgsql functions) --- we've been living with essentially these same problems for years there, and no one's very happy about it. regards, tom lane