Re: race condition when writing pg_control

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема Re: race condition when writing pg_control
Дата
Msg-id 6D187DAC-C177-4556-929D-718094FF6143@amazon.com
обсуждение исходный текст
Ответ на Re: race condition when writing pg_control  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: race condition when writing pg_control  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 6/7/20, 7:50 PM, "Thomas Munro" <thomas.munro@gmail.com> wrote:
> I pushed 0001 and 0002, squashed into one commit.  I'm not sure about
> 0003.  If we're going to do that, wouldn't it be better to just
> acquire the lock in that one extra place in StartupXLOG(), rather than
> introducing the extra parameter?

Thanks!  The approach for 0003 was discussed a bit upthread [0].  I do
not have a strong opinion, but I lean towards just acquiring the lock.

Nathan

[0] https://postgr.es/m/20200527071053.GD103662%40paquier.xyz


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: race condition when writing pg_control
Следующее
От: David Fetter
Дата:
Сообщение: Bump default wal_level to logical