Re: pg_locks-exclusivelock for select queries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_locks-exclusivelock for select queries
Дата
Msg-id 899843.1711117130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_locks-exclusivelock for select queries  (arun chirappurath <arunsnmimt@gmail.com>)
Список pgsql-general
arun chirappurath <arunsnmimt@gmail.com> writes:
> I am running below query on a database. why is it creating a exclusive lock
> on a virtualxid?  I am running some SELECT queries and its creating an
> ExclusiveLock in virtualxid? is this normal?

Yes.  That lock has nothing to do with any table, only with the
transaction's own existence.  It can't conflict when acquired,
because the virtual XID is unique (at least across existing sessions).
It exists so that other sessions can wait for this one if needful, by
trying to take share lock on the virtualxid.

            regards, tom lane



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

Предыдущее
От: Nick Renders
Дата:
Сообщение: Re: could not open file "global/pg_filenode.map": Operation not permitted
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: could not open file "global/pg_filenode.map": Operation not permitted