pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Dave Smith <dave.smith@candata.com>
Cc: Alan Stange <stange@rentec.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: setFetchSize question
Date: Sat, 26 Feb 2005 09:42:15 +1300
Message-ID: <421F8DA7.2070202@opencloud.com> (raw)
In-Reply-To: <1109348470.14394.43.camel@playpen.candata.com>
References: <421F4E76.508@rentec.com>
	<1109348470.14394.43.camel@playpen.candata.com>

Dave Smith wrote:
> Funny, I'm trying to do the same thing. I think the problem is that V3
> protocol (bind/execute) , Postgresql does not log the portal command
> just the SQL statement. I'm busy trying to find the link in the archives
> to this problem ..

Yeah, V3 introduces some logging issues. Only the initial Parse is 
logged, but a) just because we ran a Parse doesn't actually mean the 
query has been run and b) a single Parse might be followed by multiple 
Bind/Execute pairs that actually run the query multiple times (and those 
Bind/Executes might happen hours after the Parse!). So statement logging 
no longer gives you a good idea of what queries are being executed.

Fixing this on the server side is on my todo list but not too high at 
the moment.

The portal-execution thing is similar -- for a single query execution, 
there might be multiple Executes sent for the same portal (with a 
max-rows limit in place). That's less of a logging issue since it's 
logically the same query running across all of those Executes, we're 
just asking for the results one bit at a time.

-O



view thread (4+ messages)

Message-ID: <421F8DA7.2070202@opencloud.com>
Permalink:  ../421F8DA7.2070202@opencloud.com/
Also on:    postgresql.org/message-id/421F8DA7.2070202@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, dave.smith@candata.com, stange@rentec.com
  Subject: Re: setFetchSize question
  In-Reply-To: <421F8DA7.2070202@opencloud.com>
  References: <421F4E76.508@rentec.com> <1109348470.14394.43.camel@playpen.candata.com> <421F8DA7.2070202@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