Re: Buffer locking is special (hints, checksums, AIO writes)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Buffer locking is special (hints, checksums, AIO writes)
Дата
Msg-id CA+TgmoY0hnGMqyzoM8SBiJVUT=+n0KyWrmXVVEmR-itD-c3uSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Buffer locking is special (hints, checksums, AIO writes)  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Wed, Aug 27, 2025 at 12:18 PM Andres Freund <andres@anarazel.de> wrote:
> Which would leave us with:
> - reference (pins today)
> - share
> - share-exclusive
> - exclusive
> - cleanup
>
> This doesn't quite seem to map onto the heavyweight lock levels in a sensible
> way...

Could do: ACCESS SHARE, SHARE, SHARE UPDATE EXCLUSIVE, EXCLUSIVE,
ACCESS EXCLUSIVE.

I've always thought that a pin was a lot like an access share lock and
a cleanup lock was a lot like an access exclusive lock.

But then again, using the same terminology for two different things
might be confusing.

--
Robert Haas
EDB: http://www.enterprisedb.com



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