ANALYZE locks pg_listener in EXCLUSIVE for long time? - Mailing list pgsql-hackers

From Philip Warner
Subject ANALYZE locks pg_listener in EXCLUSIVE for long time?
Date
Msg-id 6.1.0.6.0.20040503112948.04e2d280@203.8.195.10
Whole thread Raw
Responses Re: ANALYZE locks pg_listener in EXCLUSIVE for long time?
List pgsql-hackers
We are seeing occasional long lockouts from out DB. When I do a 'select * 
from pg_locks', I find that everybody is waiting for pg_listener, and that 
the lock on pg_listener is currently held by a long-running ANALYZE VERBOSE.

I saw the following in the change logs (not sure if it's relevant):
        should have gotten this notify.  But to do that, we'd have to wait        to see if he commits or not, or make
UNLISTENhold exclusive lock        on pg_listener until commit.  Either of these answers is        deadlock-prone, not
tomention horrible for interactive        performance.  Do it this way for now.  (What happened to that        project
todo LISTEN/NOTIFY in memory with no table, anyway?)
 

Does this mean that ANALYZE will take an exclusive lock on pg_listener 
until the ANALYZE finishes? Or is there some other cause?

Any help or suggestions would be appreciated...




----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp.mit.edu:11371       |/ 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: SET WITHOUT CLUSTER patch
Next
From: Claudio Natoli
Date:
Subject: Re: [pgsql-hackers-win32] Timezone database questions