Meaning of transaction pg_locks?

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Meaning of transaction pg_locks?
Дата
Msg-id 491A41A6.3050202@rhyme.com.au
обсуждение исходный текст
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimizing COPY
Следующее
От: Philip Warner
Дата:
Сообщение: Re: Meaning of transaction pg_locks?