Prevent the unnecessary creation of .ready file for the timeline history file.

Fujii Masao <fujii@postgresql.org>

Commit: 83c7bfb9aba947647dd2746281fceb60dd584271
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-11-06T12:26:21Z
Releases: 9.0.19
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.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +5 −2