From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: log_duration
Date: Sun, 06 Feb 2005 12:32:37 -0500
Message-ID: <4984.1107711157@sss.pgh.pa.us> (raw)
In-Reply-To: <KGEFLMPJFBNNLNOOOPLGKEGPCIAA.simon@2ndquadrant.com>
References: <KGEFLMPJFBNNLNOOOPLGKEGPCIAA.simon@2ndquadrant.com>
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Further update on this:
> We've isolated this issue to JDBC client access.
Ah-hah, now it makes sense. I believe the JDBC driver always uses
extended query protocol (parse/bind/execute messages). We know that
that code path is a bit shy of a load with respect to statement logging,
mainly because no one has worked out exactly what it ought to log and
when. When you consider the possibilities for re-use of parsed
statements and partial execution of portals, it's not clear what a
"statement" is, let alone what its "duration" is. Maybe the real
problem is that the GUC variables are defined in terms of a too
simplistic view of the world.
As a quick workaround until someone thinks of a better idea, it might be
sufficient to attach logging code to the execute phase, and ignore the
partial-execution issue.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com
Subject: Re: log_duration
In-Reply-To: <4984.1107711157@sss.pgh.pa.us>
References: <KGEFLMPJFBNNLNOOOPLGKEGPCIAA.simon@2ndquadrant.com> <4984.1107711157@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