Re: Waiting for select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Munro <marc(at)bloodnok(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Waiting for select
Date: 2005-06-10 22:48:53
Message-ID: 6294.1118443733@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marc Munro <marc(at)bloodnok(dot)com> writes:
> Can someone explain this? I seem to have a query which is being blocked
> by a lock. I was under the impression that selects are never blocked.

AccessExclusiveLock blocks anything.

> A query of blocking locks shows this:

> object | trans | pid | mode | blocker
> ---------------------------+-------+------+---------------------+---------
> testdb.address_type | | 5754 | AccessExclusiveLock |
> testdb.address_type | | 5987 | AccessShareLock | 5754

So what's process 5754 doing?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marc Munro 2005-06-10 22:59:19 Re: Waiting for select
Previous Message Karsten Hilbert 2005-06-10 22:47:56 Re: Version Control?