func: static void PgstatCollectorMain(int argc,char *argv[]) pgstat_write_statsfile ( ( ( bool ) 1 ) ); static void pgstat_write_statsfile(bool permanent) PgStat_StatDBEntry * dbentry ; PgStat_StatTabEntry * tabentry ; FILE * fpout ; const char * tmpfile = ( permanent ? "global/pgstat.tmp" : pgstat_stat_tmpname ) ; int rc ; fpout = AllocateFile ( tmpfile , "w" ); if ( fpout == ( ( void * ) 0 ) )  while ( ( dbentry = ( ( PgStat_StatDBEntry * ) ( hash_seq_search ( & hstat ) ) ) ) != ( ( void * ) 0 ) )  while ( ( tabentry = ( ( PgStat_StatTabEntry * ) ( hash_seq_search ( & tstat ) ) ) ) != ( ( void * ) 0 ) )  rc = ( fwrite ( tabentry , sizeof ( PgStat_StatTabEntry ) , 1 , fpout ) ); 