Re: Re: redo failed in physical streaming replication while stopping the master server

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Re: redo failed in physical streaming replication while stopping the master server
Дата
Msg-id CAB7nPqSyiMP0Er8Xw713YU7W-EmSVGWgnrhs5SMzt4=ovgGU=g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: redo failed in physical streaming replication while stopping the master server  (lannis <msp548546@163.com>)
Список pgsql-hackers
On Thu, Mar 3, 2016 at 6:58 PM, lannis <msp548546@163.com> wrote:
> So in the replay scenario, before we read the page from wal segment file,
> using the specical RecPtr which point to the next page header address, can
> we predicat the page header is a long or short?

I am not sure I am getting what you are looking for, but if you mean
if we can predict it or not, the answer is yes. A long header is used
at the beginning of a WAL segment, by default 16MB, and the short
header at the beginning of a WAL page, or XLOG_BLCKSZ, 8kB by default.
-- 
Michael



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: psql autocomplete for casting
Следующее
От: Mithun Cy
Дата:
Сообщение: Re: POC: Cache data in GetSnapshotData()