Skip to content

Commit 1b5a2db

Browse files
committed
Add fflush() before sleeping, per Matthew O'Connor.
1 parent b281ea8 commit 1b5a2db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/pg_autovacuum/pg_autovacuum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ main(int argc, char *argv[])
11611161
"%i All DBs checked in: %.0f usec, will sleep for %i secs.",
11621162
loops, diff, sleep_secs);
11631163
log_entry(logbuffer);
1164+
fflush(LOGOUTPUT);
11641165
}
11651166

11661167
sleep(sleep_secs); /* Larger Pause between outer loops */

0 commit comments

Comments
 (0)