Re: How to disconnect a single user in Postgresql 8.2.5 from a database
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: How to disconnect a single user in Postgresql 8.2.5 from a database |
| Дата | |
| Msg-id | 28207.1271775490@sss.pgh.pa.us обсуждение |
| Ответ на | Re: How to disconnect a single user in Postgresql 8.2.5 from a database (Scott Marlowe <scott.marlowe@gmail.com>) |
| Список | pgsql-admin |
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Tue, Apr 20, 2010 at 7:31 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Scott Marlowe <scott.marlowe@gmail.com> writes:
>>> So, pg_cancel_backend(pid) is the 8.3 version, that may or may not
>>> always work then, right?
>>
>> No, I didn't say that.
> Well, my experience with it has been that it's similar and it doesn't
> always work.
pg_cancel_backend might or might not always succeed in canceling a
query, if that's what you mean. What I'm worried about with SIGTERM'ing
an individual backend is negative side-effects, like hanging the entire
database. Before 8.4 there was never any attempt to ensure that that
would work nicely, and if memory serves we did find some problems when
we tested it.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера