Re: prepared statements don't log arguments? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: prepared statements don't log arguments?
Date
Msg-id 10096.1112944285@sss.pgh.pa.us
Whole thread Raw
In response to Re: prepared statements don't log arguments?  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: prepared statements don't log arguments?  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Oliver Jowett <oliver@opencloud.com> writes:
> Simon Riggs wrote:
>> OK, thats what I hoped you'd say. With a prepared query all of the
>> statements execute the same plan, so you don't need to know the exact
>> parameters.

> This isn't true in 8.0 if you are using the unnamed statement (as the
> JDBC driver does in some cases): the plan chosen depends on the
> parameter values given in the first Bind.

Also, "what plan got chosen" isn't the only question that a DBA might
want the log to answer.  "Where did my data get screwed up" is at least
as likely an application.

I'm a bit worried about the costs of converting binary-format parameters
into text form ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: prepared statements don't log arguments?
Next
From: Bernd Helmle
Date:
Subject: Re: Call for objections: merge Resdom with TargetEntry