pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: 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 23:21:32 +1300
Message-ID: <41A30F2C.40801@opencloud.com> (raw)
In-Reply-To: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com>
References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <41A30F2C.40801@opencloud.com>
Permalink:  ../41A30F2C.40801@opencloud.com/
Also on:    postgresql.org/message-id/41A30F2C.40801@opencloud.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: oliver@opencloud.com, blind@xythos.com
  Subject: Re: When running with autocommit false only the first BEGIN
  In-Reply-To: <41A30F2C.40801@opencloud.com>
  References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.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