Re: Waiting for select - Mailing list pgsql-general

From Tom Lane
Subject Re: Waiting for select
Date
Msg-id 6294.1118443733@sss.pgh.pa.us
Whole thread Raw
In response to Waiting for select  (Marc Munro <marc@bloodnok.com>)
Responses Re: Waiting for select
List pgsql-general
Marc Munro <marc@bloodnok.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

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Waiting for select
Next
From: Marc Munro
Date:
Subject: Re: Waiting for select