Content-Length: 263410 | pFad | http://github.com/postgrespro/postgres/commit/4e746807408eadad9ad13692464f381fde1c3fbd

C8 Prevent the unnecessary creation of .ready file for the timeline hist… · postgrespro/postgres@4e74680 · GitHub
Skip to content

Commit 4e74680

Browse files
committed
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.
1 parent 7225abf commit 4e74680

File tree

1 file changed

+5
-2
lines changed
  • src/backend/access/transam

1 file changed

+5
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,8 +4615,11 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
46154615
#endif
46164616

46174617
/* The history file can be archived immediately. */
4618-
TLHistoryFileName(histfname, newTLI);
4619-
XLogArchiveNotify(histfname);
4618+
if (XLogArchivingActive())
4619+
{
4620+
TLHistoryFileName(histfname, newTLI);
4621+
XLogArchiveNotify(histfname);
4622+
}
46204623
}
46214624

46224625
/*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4e746807408eadad9ad13692464f381fde1c3fbd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy