Re: UPDATE becomes mired / win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Peterson <stevep-hv(at)zpfe(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: UPDATE becomes mired / win32
Date: 2006-10-04 20:28:43
Message-ID: 21179.1159993723@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Steve Peterson <stevep-hv(at)zpfe(dot)com> writes:
> If I run the statement:
> (1): UPDATE voter SET gender = 'U';
> on the table in this condition, the query effectively never ends --
> I've allowed it to run for 12-14 hours before giving up.
> ...
> When (1) is running, the machine is very nearly idle, with no
> postmaster taking more than 1 or 2 % of the CPU.

Is the disk busy? If neither CPU nor I/O are saturated, then it's a
good bet that the UPDATE isn't actually running at all, but is waiting
for a lock somewhere. Have you looked into pg_locks to check for a
conflicting lock?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2006-10-04 20:33:54 Re: Multi-key index not beeing used - bug?
Previous Message Michael Stone 2006-10-04 19:19:12 Re: Unsubscribe