Avoid archiving XLOG_RUNNING_XACTS on idle server

Simon Riggs <simon@2ndQuadrant.com>

Commit: bf08f2292ffca14fd133aa0901d1563b6ecd6894
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2016-04-04T06:18:05Z
Releases: 9.6.0
Avoid archiving XLOG_RUNNING_XACTS on idle server

If archive_timeout > 0 we should avoid logging XLOG_RUNNING_XACTS if idle.

Bug 13685 reported by Laurence Rowe, investigated in detail by Michael Paquier,
though this is not his proposed fix.
20151016203031.3019.72930@wrigleys.postgresql.org

Simple non-invasive patch to allow later backpatch to 9.4 and 9.5

Files

PathChange+/−
src/backend/postmaster/bgwriter.c modified +4 −1
src/backend/storage/ipc/standby.c modified +21 −0