Re: Logging conflicted queries on deadlocks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Logging conflicted queries on deadlocks
Дата
Msg-id 20558.1206159769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Logging conflicted queries on deadlocks  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Logging conflicted queries on deadlocks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> One thing that I worried about for a little bit is that you can imagine
>> privilege-escalation scenarios.

> Perhaps we should only do this if the current user's ID is the same as the
> outermost session user's ID?

A conservative approach would be to report the query texts *only* in the
server log and never to the client --- this would need a bit of klugery
but seems doable.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Logging conflicted queries on deadlocks
Следующее
От: NikhilS
Дата:
Сообщение: Re: Auto Partitioning Patch - WIP version 1