From 1b5a2dbdff40fe5dbe149a275f3c45b34b56c3c1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 8 Dec 2003 21:51:31 +0000 Subject: [PATCH] Add fflush() before sleeping, per Matthew O'Connor. --- contrib/pg_autovacuum/pg_autovacuum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/pg_autovacuum/pg_autovacuum.c b/contrib/pg_autovacuum/pg_autovacuum.c index c567c4e7f3..c3a44b8ed6 100644 --- a/contrib/pg_autovacuum/pg_autovacuum.c +++ b/contrib/pg_autovacuum/pg_autovacuum.c @@ -1161,6 +1161,7 @@ main(int argc, char *argv[]) "%i All DBs checked in: %.0f usec, will sleep for %i secs.", loops, diff, sleep_secs); log_entry(logbuffer); + fflush(LOGOUTPUT); } sleep(sleep_secs); /* Larger Pause between outer loops */