pg_terminate_backend for same-role

Поиск
Список
Период
Сортировка
От Daniel Farina
Тема pg_terminate_backend for same-role
Дата
Msg-id CAAZKuFYNy4GAehTf-H-bfpodbbPX1BrfAod0UOarcUESLouvXg@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_terminate_backend for same-role
Re: pg_terminate_backend for same-role
Список pgsql-hackers
Parallel to pg_cancel_backend, it'd be nice to allow the user to just
outright kill a backend that they own (politely, with a SIGTERM),
aborting any transactions in progress, including the idle transaction,
and closing the socket.

I imagine the problem is a race condition whereby a pid might be
reused by another process owned by another user (doesn't that also
affect pg_cancel_backend?).  Shall we just do everything using the
MyCancelKey (which I think could just be called "SessionKey",
"SessionSecret", or even just "Session") as to ensure we have no case
of mistaken identity? Or does that end up being problematic?

-- 
fdr


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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Command Triggers, v16
Следующее
От: Tareq Aljabban
Дата:
Сообщение: Re: Storage Manager crash at mdwrite()