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

From bricklen
Subject Re: Update problem on large table
Date
Msg-id AANLkTi=yDk1KoJ2+k87mZb3vvyZLT8AOh=qcSWqqBr1M@mail.gmail.com
Whole thread Raw
In response to Re: Update problem on large table  (felix <crucialfelix@gmail.com>)
Responses Re: Update problem on large table  (Jon Nelson <jnelson+pgsql@jamponi.net>)
List pgsql-performance
On Sat, Dec 4, 2010 at 11:45 AM, felix <crucialfelix@gmail.com> wrote:
> Ok, I caught one : an update that is stuck in waiting.
> the first one blocks the second one.
> ns      |    5902 | nssql   | UPDATE "fastadder_fastadderstatus" SET "built"
> = false WHERE "fastadder_fastadderstatus"."service_id" = 1

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.

pgsql-performance by date:

Previous
From: Robert Haas
Date:
Subject: Re: Performance under contention
Next
From: Jon Nelson
Date:
Subject: Re: Update problem on large table