Fwd: Can we force fully disconnect all client connected to localhost:5432

Поиск
Список
Период
Сортировка
От Gaurav K Srivastav
Тема Fwd: Can we force fully disconnect all client connected to localhost:5432
Дата
Msg-id bf0617110912300436m5cc1fdbet71d1463e972fc7f9@mail.gmail.com
обсуждение исходный текст
Ответ на Can we force fully disconnect all client connected to localhost:5432  (Gaurav K Srivastav <gauravgkp@gmail.com>)
Ответы Re: Can we force fully disconnect all client connected to localhost:5432  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
Sorry Craig,

I am using
PostgreSQL 8.3.8 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 3.4.6
20060404 (Red Hat 3.4.6-10)
version. and in my case I have to drop database and recreate it without
stop/restart database server.while several client are also running on this
datbase server .As you told pg_terminate_backend() is for 8.4.
Can you please let me know the how I can do this task via shell script.

Guarav Kumar Srivastava

---------- Forwarded message ----------
From: Gaurav K Srivastav <gauravgkp@gmail.com>
Date: Wed, Dec 30, 2009 at 5:57 PM
Subject: Re: [BUGS] Can we force fully disconnect all client connected to
localhost:5432
To: Craig Ringer <craig@postnewspapers.com.au>


Hi Craig Ringer,
I am using
PostgreSQL 8.3.8 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 3.4.6
20060404 (Red Hat 3.4.6-10)
version. and in my case I have to drop datbase and recreate it without
stop/restart database.while several client are also running on this datbase
server .As you told pg_terminate_backend() is for 8.4.
Can you please let me know the how I can do this task via shell script.

Guarav Kumar Srivastava

  On Wed, Dec 30, 2009 at 5:29 PM, Craig Ringer <craig@postnewspapers.com.au
> wrote:

> On 30/12/2009 2:02 PM, Gaurav K Srivastav wrote:
>
>> Hi,
>> Do we have any command to forcefully disconnet each client in postgres .
>> If we have please let me know.
>>
>
> In 8.4 there's pg_terminate_backend(). Prior versions don't have any truly
> safe method, though sending a SIGTERM to a backend is supposed to be
> somewhat safe.
>
> --
> Craig Ringer
>

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Can we force fully disconnect all client connected to localhost:5432
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Can we force fully disconnect all client connected to localhost:5432