Re: setFetchSize question - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: setFetchSize question
Date
Msg-id 421F8DA7.2070202@opencloud.com
Whole thread Raw
In response to Re: setFetchSize question  (Dave Smith <dave.smith@candata.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Statement level transactions
Next
From: Markus Schaber
Date:
Subject: Re: Statement level transactions