Re: Change pg_cancel_*() to ignore current backend

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Change pg_cancel_*() to ignore current backend
Дата
Msg-id 13917.1432331463@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Change pg_cancel_*() to ignore current backend  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: Change pg_cancel_*() to ignore current backend  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 5/22/15 3:08 PM, Eric Ridge wrote:
>> Rather than change the behavior of pg_cancel/terminate_backend(), why not change pg_stat_activity to exclude the
currentsession?  Seems like showing a row in pg_stat_activity for "SELECT * FROM pg_stat_activity" is kinda useless
anyways.

> Interesting idea. I suspect that would be even more invasive than 
> modifying the functions though...

-1 ... some other columns in pg_stat_activity are potentially useful even
for the current session, eg session and transaction start times.
        regards, tom lane



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Asynchronous DRAM Self-Refresh
Следующее
От: Tom Lane
Дата:
Сообщение: Re: jsonb concatenate operator's semantics seem questionable