@@ -3107,12 +3107,7 @@ PgstatCollectorMain(int argc, char *argv[])
31073107 * satisfied by existing file.
31083108 */
31093109 if (last_statwrite < last_statrequest )
3110- {
3111- elog (LOG , "pgstat: writing new stats file" );
31123110 pgstat_write_statsfile (false);
3113- }
3114-
3115- elog (LOG , "pgstat: attempting recv()" );
31163111
31173112 /*
31183113 * Try to receive and process a message. This will not block,
@@ -3141,9 +3136,6 @@ PgstatCollectorMain(int argc, char *argv[])
31413136 errmsg ("could not read statistics message: %m" )));
31423137 }
31433138
3144- elog (LOG , "pgstat: received msg type %d len %d" ,
3145- msg .msg_hdr .m_type , len );
3146-
31473139 /*
31483140 * We ignore messages that are smaller than our common header
31493141 */
@@ -3238,17 +3230,13 @@ PgstatCollectorMain(int argc, char *argv[])
32383230 }
32393231 } /* end of inner message-processing loop */
32403232
3241- elog (LOG , "pgstat: waiting" );
3242-
32433233 /* Sleep until there's something to do */
32443234 /* XXX should not need a timeout here */
32453235 wr = WaitLatchOrSocket (& pgStatLatch ,
32463236 WL_LATCH_SET | WL_POSTMASTER_DEATH | WL_SOCKET_READABLE | WL_TIMEOUT ,
32473237 pgStatSock ,
32483238 2000L );
32493239
3250- elog (LOG , "pgstat: wait result 0x%x" , wr );
3251-
32523240 /*
32533241 * Emergency bailout if postmaster has died. This is to avoid the
32543242 * necessity for manual cleanup of all postmaster children.
@@ -4031,15 +4019,7 @@ static void
40314019pgstat_recv_inquiry (PgStat_MsgInquiry * msg , int len )
40324020{
40334021 if (msg -> inquiry_time > last_statrequest )
4034- {
40354022 last_statrequest = msg -> inquiry_time ;
4036- if (last_statwrite < last_statrequest )
4037- elog (LOG , "pgstat: received new inquiry message" );
4038- else
4039- elog (LOG , "pgstat: received stale inquiry message" );
4040- }
4041- else
4042- elog (LOG , "pgstat: received out-of-order inquiry message" );
40434023}
40444024
40454025
0 commit comments