Why does execReplication.c lock tuples?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Why does execReplication.c lock tuples?
Дата
Msg-id 20190120200302.x477vxi3riinyhmz@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: Why does execReplication.c lock tuples?  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Список pgsql-hackers
Hi,

Currently RelationFindReplTupleByIndex(), RelationFindReplTupleSeq()
lock the found tuple. I don't quite get what that achieves - why isn't
dealing with concurrency in the table_update/delete calls at the
callsites sufficient? As far as I can tell there's no meaningful
concurrency handling in the heap_lock_tuple() paths, so it's not like we
follow update chains or anything. As far as I can tell this just nearly
doubles the number of WAL records when replaying updates/deletes?

Greetings,

Andres Freund


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: A small note on the portability of cmake
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Thread-unsafe coding in ecpg