Re: (Never?) Kill Postmaster? - Mailing list pgsql-general

From Pavel Stehule
Subject Re: (Never?) Kill Postmaster?
Date
Msg-id 162867790710232309u792b59d8wcf1f742d51d85141@mail.gmail.com
Whole thread Raw
In response to (Never?) Kill Postmaster?  (Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>)
Responses Re: (Never?) Kill Postmaster?  (Tommy Gildseth <tommy.gildseth@usit.uio.no>)
List pgsql-general
2007/10/24, Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>:
> Hi there,
>
> I read dozens of times the "TIP 2: Don't 'kill -9' the postmaster"...
>
> Now, what am I supposed to do if I launched a query which takes ages, and
> which I want to interrupt?
>
> Thanks for any advice,
>
> Stef
>

Hello

you have to use more gently way

select pg_cancel_backend()
http://www.postgresql.org/docs/current/interactive/functions-admin.html

Pavel



> ____________________________________________________________________
>
>
>   Stefan Schwarzer
>
>   Lean Back and Relax - Enjoy some Nature Photography:
>   http://photoblog.la-famille-schwarzer.de
>
>   Appetite for Global Data? UNEP GEO Data Portal:
>   http://geodata.grid.unep.ch
>
> ____________________________________________________________________
>
>
>
>
>

pgsql-general by date:

Previous
From: Stefan Schwarzer
Date:
Subject: (Never?) Kill Postmaster?
Next
From: Ow Mun Heng
Date:
Subject: Re: (Never?) Kill Postmaster?