Re: pgsql: Split off functions related to timeline history files and XLOG a - Mailing list pgsql-committers

From Heikki Linnakangas
Subject Re: pgsql: Split off functions related to timeline history files and XLOG a
Date
Msg-id 506BD861.4080001@vmware.com
Whole thread Raw
In response to Re: pgsql: Split off functions related to timeline history files and XLOG a  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-committers
On 02.10.2012 21:12, Fujii Masao wrote:
> + * The files are named like "<WAL segment>.history". For example, if the
> + * database starts up and switches to timeline 5, while processing WAL
> + * segment 000000030000002A00000006 (the old timeline was 3), the timeline
> + * history file would be called "000000050000002A00000006.history".
>
> This comment is incorrect. Correctly the name of the timeline history file is
> like "<first eight digits of WAL segment>.history". So in that example,
> the timeline history file would be called "00000005.history". Or, are you
> planning to change the name of the timeline history file in the followup
> patch?
>
> The call of XLogArchiveNotify() for the timeline history file was removed
> from writeTimelineHistory(). Why do we need to do this? This change
> seems to prevent the timeline history file from being archived at all.

Hmm, I moved that call to the caller of writeTimeLineHistory at some
point, but seems it was lost altogether in the end. I didn't mean to
change behavior.

Fixed both issues, thanks.

- Heikki


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix two bugs introduced in the xlog.c split.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Return the number of rows processed when COPY is executed throug