Meaning of transaction pg_locks? - Mailing list pgsql-hackers

From Philip Warner
Subject Meaning of transaction pg_locks?
Date
Msg-id 491A41A6.3050202@rhyme.com.au
Whole thread Raw
Responses Re: Meaning of transaction pg_locks?  (Philip Warner <pjw@rhyme.com.au>)
Re: Meaning of transaction pg_locks?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

Can anyone explain the way to debug this kind of situation and/or
explain the meaning of these locks?

Partial output of "select * from pg_locks":
          |           |  1192675195 | 62860 | ShareLock           | f          |           |  1192675195 | 62814 |
ExclusiveLock      | t          |           |  1192675195 | 62838 | ShareLock           | f          |           |
1192675195| 63525 | ShareLock           | f
 

where 1192675195 is the 'transaction' field.

I am not at all clear what the processes are waiting for, or if there is
a way to reduce such contention.

-- 
----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 03 5330 3171          |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
http://www.rhyme.com.au <http://www.rhyme.com.au/>         
|                /           \|                                |    --________--
GPG key available upon request.  |  /                                |/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimizing COPY
Next
From: Philip Warner
Date:
Subject: Re: Meaning of transaction pg_locks?