Re: Update problem on large table

From: bricklen <bricklen(at)gmail(dot)com>
To: felix <crucialfelix(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Update problem on large table
Date: 2010-12-06 19:46:04
Message-ID: AANLkTi=yDk1KoJ2+k87mZb3vvyZLT8AOh=qcSWqqBr1M@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sat, Dec 4, 2010 at 11:45 AM, felix <crucialfelix(at)gmail(dot)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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jon Nelson 2010-12-06 19:48:47 Re: Update problem on large table
Previous Message Robert Haas 2010-12-06 19:07:05 Re: Performance under contention