Re: CheckpointLock needed in CreateCheckPoint()?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CheckpointLock needed in CreateCheckPoint()?
Дата
Msg-id 389428.1611001525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CheckpointLock needed in CreateCheckPoint()?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: CheckpointLock needed in CreateCheckPoint()?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Here's a patch to remove CheckpointLock completely.  ...
> So I don't see any problem with just ripping this out entirely, but
> I'd like to know if anybody else does.

If memory serves, the reason for the lock was that the CHECKPOINT
command used to run the checkpointing code directly in the calling
backend, so we needed it to keep more than one process from doing
that at once.  AFAICS, it's no longer possible for more than one
process to try to run that code concurrently, so we shouldn't need
the lock anymore.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: search_plan_tree(): handling of non-leaf CustomScanState nodes causes segfault
Следующее
От: Álvaro Herrera
Дата:
Сообщение: Re: {CREATE INDEX, REINDEX} CONCURRENTLY improvements