Re: Update problem on large table - Mailing list pgsql-performance

From Kenneth Marshall
Subject Re: Update problem on large table
Date
Msg-id 20101206202656.GK19162@aart.is.rice.edu
Whole thread Raw
In response to Re: Update problem on large table  (Josh Kupershmidt <schmiddy@gmail.com>)
Responses Re: Update problem on large table  (felix <crucialfelix@gmail.com>)
List pgsql-performance
On Mon, Dec 06, 2010 at 03:24:31PM -0500, Josh Kupershmidt wrote:
> On Mon, Dec 6, 2010 at 2:48 PM, Jon Nelson <jnelson+pgsql@jamponi.net> wrote:
> > On Mon, Dec 6, 2010 at 1:46 PM, bricklen <bricklen@gmail.com> wrote:
> >> Not sure if anyone replied about killing your query, but you can do it like so:
> >>
> >> select pg_cancel_backend(5902); ?-- assuming 5902 is the pid of the
> >> query you want canceled.
> >
> > How does this differ from just killing the pid?
>
> pg_cancel_backend(5902) does the same thing as:
>   kill -SIGINT 5902
>
> Josh
>

Yes, but you can use it from within the database. The kill command
requires shell access to the backend.

Cheers,
Ken

pgsql-performance by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: Update problem on large table
Next
From: felix
Date:
Subject: Re: Update problem on large table