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

Fujii Masao <fujii@postgresql.org>

Commit: 38eb5d9e86af67953bad91dd5b9d993b076b37bf
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-11-06T12:25:45Z
Releases: 9.2.10
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