Re: Online base backup from the hot-standby - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Online base backup from the hot-standby
Date
Msg-id CAHGQGwFDFKWuLA-kWtsn9DPyGDWpALSm5tO_inacDQwb14vuOQ@mail.gmail.com
Whole thread Raw
In response to Re: Online base backup from the hot-standby  (Jun Ishiduka <ishizuka.jun@po.ntts.co.jp>)
Responses Re: Online base backup from the hot-standby  (Jun Ishiduka <ishizuka.jun@po.ntts.co.jp>)
List pgsql-hackers
2011/10/13 Jun Ishiduka <ishizuka.jun@po.ntts.co.jp>:
> I updated to patch corresponded above-comments.

Thanks for updating the patch!

As I suggested in the reply to Simon, I think that the change of FPW
should be WAL-logged separately from that of HS parameters. ISTM
packing them in one WAL record makes XLogReportParameters()
quite confusing. Thought?
    if (!shutdown && XLogStandbyInfoActive())
+    {        LogStandbySnapshot(&checkPoint.oldestActiveXid, &checkPoint.nextXid);
+        XLogReportParameters(REPORT_ON_BACKEND);
+    }

Why doesn't the change of FPW need to be WAL-logged when
shutdown checkpoint is performed? It's helpful to add the comment
explaining why.


Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: loss of transactions in streaming replication
Next
From: Robert Haas
Date:
Subject: Re: WALInsertLock tuning