Re: Update problem on large table

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: Update problem on large table
Дата
Msg-id AANLkTi=yDk1KoJ2+k87mZb3vvyZLT8AOh=qcSWqqBr1M@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Update problem on large table  (felix <crucialfelix@gmail.com>)
Ответы Re: Update problem on large table
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Performance under contention
Следующее
От: Jon Nelson
Дата:
Сообщение: Re: Update problem on large table