pg_autovacuum another one line patch

Поиск
Список
Период
Сортировка
Искать
От
Matthew T. O'Connor
Тема
pg_autovacuum another one line patch
Дата
Msg-id
3FD40D36.7020804@zeut.net
Список
Дерево обсуждения
pg_autovacuum another one line patch "Matthew T. O'Connor" <matthew@zeut.net>
Re: pg_autovacuum another one line patch Tom Lane <tgl@sss.pgh.pa.us>
On the performance list, Gaetano Mendola noticed that pg_autovacuum 
doesn't perform an fflush after the last log_entry call before sleeping. 
This makes tail -f very annoying to watch.

Attached is a patch to add that one line.

Matthew


*** pg_autovacuum.c.orig	2003-12-08 00:30:08.000000000 -0500
--- pg_autovacuum.c	2003-12-08 00:31:00.000000000 -0500
***************
*** 1161,1166 ****
--- 1161,1167 ----
  			 "%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 */
В списке pgsql-patches по дате отправления
От: Matthew T. O'Connor
Дата:
Сообщение: Another pg_autovacuum patch
От: Tom Lane
Дата:
FAQ