const char *statfile = permanent ? PGSTAT_STAT_PERMANENT_FILENAME : pgstat_stat_filename;
    int         rc;
 
-   elog(DEBUG2, "writing statsfile '%s'", statfile);
+   elog(DEBUG2, "writing stats file \"%s\"", statfile);
 
    /*
     * Open the statistics temp file to write out the current values.
    get_dbstat_filename(permanent, true, dbid, tmpfile, MAXPGPATH);
    get_dbstat_filename(permanent, false, dbid, statfile, MAXPGPATH);
 
-   elog(DEBUG2, "writing statsfile '%s'", statfile);
+   elog(DEBUG2, "writing stats file \"%s\"", statfile);
 
    /*
     * Open the statistics temp file to write out the current values.
    {
        get_dbstat_filename(false, false, dbid, statfile, MAXPGPATH);
 
-       elog(DEBUG2, "removing temporary stat file '%s'", statfile);
+       elog(DEBUG2, "removing temporary stats file \"%s\"", statfile);
        unlink(statfile);
    }
 }
    /* If requested to read the permanent file, also get rid of it. */
    if (permanent)
    {
-       elog(DEBUG2, "removing permanent stats file '%s'", statfile);
+       elog(DEBUG2, "removing permanent stats file \"%s\"", statfile);
        unlink(statfile);
    }
 
 
    if (permanent)
    {
-       elog(DEBUG2, "removing permanent stats file '%s'", statfile);
+       elog(DEBUG2, "removing permanent stats file \"%s\"", statfile);
        unlink(statfile);
    }
 
    DBWriteRequest *newreq;
    PgStat_StatDBEntry *dbentry;
 
-   elog(DEBUG2, "received inquiry for %d", msg->databaseid);
+   elog(DEBUG2, "received inquiry for database %u", msg->databaseid);
 
    /*
     * Find the last write request for this DB.  If it's older than the
            writetime = pstrdup(timestamptz_to_str(dbentry->stats_timestamp));
            mytime = pstrdup(timestamptz_to_str(cur_ts));
            elog(LOG,
-           "stats_timestamp %s is later than collector's time %s for db %d",
+                "stats_timestamp %s is later than collector's time %s for database %u",
                 writetime, mytime, dbentry->databaseid);
            pfree(writetime);
            pfree(mytime);
 
        get_dbstat_filename(false, false, dbid, statfile, MAXPGPATH);
 
-       elog(DEBUG2, "removing %s", statfile);
+       elog(DEBUG2, "removing stats file \"%s\"", statfile);
        unlink(statfile);
 
        if (dbentry->tables != NULL)