Thread: pgsql: Prevent the unnecessary creation of .ready file for the timeline

pgsql: Prevent the unnecessary creation of .ready file for the timeline

From
Fujii Masao
Date:
Prevent the unnecessary creation of .ready file for the timeline history file.

Previously .ready file was created for the timeline history file at the end
of an archive recovery even when WAL archiving was not enabled.
This creation is unnecessary and causes .ready file to remain infinitely.

This commit changes an archive recovery so that it creates .ready file for
the timeline history file only when WAL archiving is enabled.

Backpatch to all supported versions.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5332b8cec54192c5d7b0ad67dc5668ccb917eeef

Modified Files
--------------
src/backend/access/transam/timeline.c |    8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)