Re: pgsql: Avoid tricky race condition recording XLOG_HINT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Avoid tricky race condition recording XLOG_HINT
Дата
Msg-id 12578.1365431360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Avoid tricky race condition recording XLOG_HINT  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: pgsql: Avoid tricky race condition recording XLOG_HINT  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-committers
Simon Riggs <simon@2ndQuadrant.com> writes:
> Resulting code completely changes layout of XLOG_HINT WAL records, but
> this isn't even beta code, so this is a low impact change.

> src/include/catalog/catversion.h       |    2 +-

Just for the record, the right way to handle that kind of change is to
change XLOG_PAGE_MAGIC, not catversion.  A database's catalog version
might not be available to code that is inspecting WAL files and would
like to know what format it should expect.

            regards, tom lane


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix calculation of how many segments to retain for wal_keep_segm
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Avoid tricky race condition recording XLOG_HINT