From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pg@fastcrypt.com
Cc: Barry Lind <blind@xythos.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: When running with autocommit false only the first BEGIN
Date: Tue, 23 Nov 2004 10:48:09 -0500
Message-ID: <26957.1101224889@sss.pgh.pa.us> (raw)
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>
Oliver Jowett <oliver@opencloud.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, oliver@opencloud.com, pg@fastcrypt.com, blind@xythos.com
Subject: Re: When running with autocommit false only the first BEGIN
In-Reply-To: <26957.1101224889@sss.pgh.pa.us>
References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.com> <41A32762.4000403@fastcrypt.com> <41A32A7D.2010102@opencloud.com> <26957.1101224889@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox