Re: Warning: you don't own a lock of type ExclusiveLock

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема Re: Warning: you don't own a lock of type ExclusiveLock
Дата
Msg-id CAPTjJmoXzy_BgCrnrbmT6QRYA=SyTW04qDSTRB7M1+89GudyKA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Warning: you don't own a lock of type ExclusiveLock  (Gary Chambers <gwchamb@gwcmail.com>)
Ответы Re: Warning: you don't own a lock of type ExclusiveLock
Список pgsql-general
On Fri, Feb 10, 2012 at 2:35 AM, Gary Chambers <gwchamb@gwcmail.com> wrote:
> Is it possible that
> Postgres is not receiving a meaningful response with respect to
> ExclusiveLock locking (i.e. unable to really obtain an ExclusiveLock) due to
> VM "disk" residing on an NFS mount?

pg_advisory_unlock (along with the other functions in that family)
works on a set of mythical objects with no actual meaning beyond what
the database administrator chooses to give them. You lock and unlock
these ethereal "things", just numbers off a set of tables, with no
relationship to NFS mounts, tables, records, or anything else. In (the
current iteration of) the priority-queue I wrote for work, each
queue-pumping process takes an exclusive lock on a "partition", where
a partition is one fraction of the available ID space, using modulo
arithmetic. At least, that's what I, the programmer, see; to Postgres,
it just takes an exclusive lock on (42,64) or some other pair of
numbers. That lock will succeed or fail only on the basis of other
advisory lock calls, nothing else can affect it.

Chris Angelico

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VIEW still referring to old name of field
Следующее
От: Rich Shepard
Дата:
Сообщение: Strategy for Primary Key Generation When Populating Table