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

From: wcting <wcting163(at)163(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: redo failed in physical streaming replication while stopping the master server
Date: 2016-03-02 07:25:24
Message-ID: 1456903524873-5890124.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

/*
* If at page start, we must skip over the page header. But
we can't
* do that until we've read in the page, since the header
size is
* variable.
*/

i don't know the meaning behind this comments,

if ((RecPtr->xrecoff % XLogSegSize) == 0)
it's a long page header, else a short page header,

so "the header size" can be calculated ? right?

--
View this message in context: http://postgresql.nabble.com/redo-failed-in-physical-streaming-replication-while-stopping-the-master-server-tp5889961p5890124.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-03-02 07:51:48 Re: TAP / recovery-test fs-level backups, psql enhancements etc
Previous Message Craig Ringer 2016-03-02 07:05:30 Re: [PATCH] Logical decoding support for sequence advances