diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index d3650bdf051e7d34a6d194c500ef4b01be64baf4..0f2678cfda04a750d436d0eb1a2d7632ba2d5b57 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -2271,6 +2271,13 @@ XLogBackgroundFlush(void) END_CRIT_SECTION(); + /* + * If we wrote something then we have something to send to standbys also, + * otherwise the replication delay become around 7s with just async commit. + */ + if (wrote_something) + WalSndWakeup(); + return wrote_something; }