pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.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 07:04:50 -0500
Message-ID: <41A32762.4000403@fastcrypt.com> (raw)
In-Reply-To: <41A30F2C.40801@opencloud.com>
References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com>
	<41A30F2C.40801@opencloud.com>

That certainly doesn't seem acceptable. As Barry points out people will 
really be in the dark when their code doesn't work.

--dc--

Oliver Jowett wrote:

> Barry Lind wrote:
>
>> While debugging my other server problem, I noticed that that only the
>> first BEGIN and COMMIT are logged on the server with sql statement
>> logging enabled.  It seems that the subsequent transaction control
>> statements are being executed correctly, it is just that they are not
>> being logged by the server.  Is this to be expected?  If so, it makes
>> debugging a bit difficult as you can't see what commits are really being
>> executed when you have sql statement logging enabled.
>
>
> Yeah, it's a limitation of statement logging. Statements are logged 
> only on Parse, not on Bind/Execute. The driver reuses the internal 
> BEGIN/COMMIT statements, so only one Parse is done for each. You will 
> see the same thing for user queries if they end up using server-side 
> prepare.
>
> There should be some past discussion about this in the -hackers archives.
>
> -O
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
>

-- 
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561




view thread (5+ messages)  latest in thread

Message-ID: <41A32762.4000403@fastcrypt.com>
Permalink:  ../41A32762.4000403@fastcrypt.com/
Also on:    postgresql.org/message-id/41A32762.4000403@fastcrypt.com

 · 

reply

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: pg@fastcrypt.com, oliver@opencloud.com, blind@xythos.com
  Subject: Re: When running with autocommit false only the first BEGIN
  In-Reply-To: <41A32762.4000403@fastcrypt.com>
  References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.com> <41A32762.4000403@fastcrypt.com>

* 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