Skip site navigation (1) Skip section navigation (2)

Re: Issue with UPDATE statement on v8

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Kenneth Hutchinson <kenneth(dot)hutchinson(at)mpfyieldstar(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Issue with UPDATE statement on v8
Date: 2005-09-23 13:30:22
Message-ID: 20050923133021.GA72851@winnie.fuhr.org (view raw or flat)
Thread:
Lists: pgsql-sql
On Thu, Sep 22, 2005 at 11:22:22AM -0500, Kenneth Hutchinson wrote:
> UPDATE t_summary
> SET        availability = 7
> WHERE  oid = 28245084
> 
> When this query is executed (within a function or without) the database
> will simply hang.  If the UPDATE is turned into a SELECT, the query
> works just fine.

One possibility is that another transaction has updated this row
or done a SELECT FOR UPDATE and hasn't committed yet.  Does just
this one record cause the update to hang or do all updates to the
table hang?  Have you queried pg_locks in another session while the
update is hung?

-- 
Michael Fuhr

In response to

pgsql-sql by date

Next:From: Michael FuhrDate: 2005-09-23 13:47:03
Subject: Re: COPY TO / COPY FROM
Previous:From: AldorDate: 2005-09-23 12:02:29
Subject: Re: COPY TO / COPY FROM

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group