Re: How to disconnect a single user in Postgresql 8.2.5 from a database
От | Scott Marlowe |
---|---|
Тема | Re: How to disconnect a single user in Postgresql 8.2.5 from a database |
Дата | |
Msg-id | h2vdcc563d11004192007u167088d7g77900fca2c3a40e3@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: How to disconnect a single user in Postgresql 8.2.5 from a database (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Re: How to disconnect a single user in Postgresql 8.2.5 from a database |
Список | pgsql-admin |
On Mon, Apr 19, 2010 at 8:10 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Josh Kupershmidt <schmiddy@gmail.com> writes: >> pg_terminate_backend() is just a SQL wrapper around: >> kill -SIGTERM [backend PID] > >> For versions before 8.4: if you can SSH in to the server, run the >> above on the PID of the backend your user is connected to, and that >> should terminate their connection. > > The reason the function isn't there before 8.4 is that that's not > promised to work before 8.4 ... most of the time it will work, but > once in awhile you could get nasty side-effects. So, pg_cancel_backend(pid) is the 8.3 version, that may or may not always work then, right?
В списке pgsql-admin по дате отправления: