Re: log_statement and Parse/Bind

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: log_statement and Parse/Bind
Дата
в 23:40:26
Msg-id
200405250239.i4P2dsR25902@candle.pha.pa.us
Ответ на
Список
Дерево обсуждения
log_statement and Parse/Bind Oliver Jowett <oliver@opencloud.com>
Re: log_statement and Parse/Bind Tom Lane <tgl@sss.pgh.pa.us>
Re: log_statement and Parse/Bind Oliver Jowett <oliver@opencloud.com>
Re: log_statement and Parse/Bind Bruce Momjian <pgman@candle.pha.pa.us>
Re: log_statement and Parse/Bind Oliver Jowett <oliver@opencloud.com>
Oliver Jowett wrote:
> I notice that when using the extended query protocol, statement logging 
> appears to happen only when a Parse message is received. This is less 
> than ideal:
> 
> - statements can be logged that are not actually executed (i.e. a 
> Parse/Bind with no corresponding Execute).
> - if statements are re-executed without an intervening Parse (i.e. 
> Parse/Bind/Execute/Bind/Execute/...), only the first execution is logged.
> 
> There's also a lesser problem with using parameterized queries: the 
> actual parameter values used in a Bind are not visible. This is the same 
> as the PREPARE/EXECUTE case, except that it's more likely to be done 
> transparently by the client's interface library (so we can't just tell 
> the application developer "don't do that, then!")
> 
> Are there any plans to change this? Should I look at making a change 
> along the lines of logging the statement on the first Execute of a 
> portal, instead of on Parse?

Well, at execute time, we don't have easy access to the original prepare
statement, especially at that stage in the code. Do you see anyway to
improve that?


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610) 359-1001 +  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: New horology failure
От: Tom Lane
Дата:
Сообщение: Re: New horology failure
FAQ