Re: prepared statements don't log arguments?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: prepared statements don't log arguments?
Дата
Msg-id 10096.1112944285@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: prepared statements don't log arguments?  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: prepared statements don't log arguments?  (Simon Riggs <simon@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: prepared statements don't log arguments?
Следующее
От: Bernd Helmle
Дата:
Сообщение: Re: Call for objections: merge Resdom with TargetEntry