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

Fujii Masao <fujii@postgresql.org>

Commit: cc76577873945183352fa6e1e82cc14606c28fd3
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-11-06T12:25:12Z
Releases: 9.4.0
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/timeline.c modified +6 −2