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

Fujii Masao <fujii@postgresql.org>

Commit: 3a3b7e316f85566771d3a28ea874e030fb12126b
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-11-06T12:25:18Z
Releases: 9.3.6
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