Re: Update blocking a select count(*)? - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Update blocking a select count(*)?
Date
Msg-id 4FDB3C0202000025000484E4@gw.wicourts.gov
Whole thread Raw
In response to Re: Update blocking a select count(*)?  (Peter Geoghegan <peter@2ndquadrant.com>)
Responses Re: Update blocking a select count(*)?
List pgsql-performance
Peter Geoghegan <peter@2ndquadrant.com> wrote:
> Benedict Holland <benedict.m.holland@gmail.com> wrote:
>> Do I seem to have this right and is there anything I can do?
>
> There are a couple of maintenance operations that could block a
> select. Do you see any AccessExclusive locks within pg_locks?
> That's the only type of lock that will block a select statement's
> AccessShare lock.

To check for that, see the queries on these Wiki pages:

http://wiki.postgresql.org/wiki/Lock_Monitoring
http://wiki.postgresql.org/wiki/Lock_dependency_information

-Kevin

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Update blocking a select count(*)?
Next
From: Benedict Holland
Date:
Subject: Re: Update blocking a select count(*)?