Re: pgsql: Improve logging of checkpoints. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject Re: pgsql: Improve logging of checkpoints.
Date
Msg-id 46875B49.2080206@enterprisedb.com
Whole thread Raw
In response to Re: pgsql: Improve logging of checkpoints.  (Heikki Linnakangas <heikki@enterprisedb.com>)
List pgsql-committers
Heikki Linnakangas wrote:
> Does this
>
>> +/* + * Log start of a checkpoint.
>> + */
>> +static void
>> +LogCheckpointStart(int flags)
>> +{
>> +    elog(LOG, "checkpoint starting:%s%s%s%s%s%s",
>> +         (flags & CHECKPOINT_IS_SHUTDOWN) ? " shutdown" : "",
>> +         (flags & CHECKPOINT_IMMEDIATE) ? " immediate" : "",
>> +         (flags & CHECKPOINT_FORCE) ? " force" : "",
>> +         (flags & CHECKPOINT_WAIT) ? " wait" : "",
>> +         (flags & CHECKPOINT_CAUSE_XLOG) ? " xlog" : "",
>> +         (flags & CHECKPOINT_CAUSE_TIME) ? " time" : "");
>> +}
>
> work with translations?

In fact, they should be ereports, not elogs. I forgot to change them
when I increased the log level from DEBUG as it was in Greg's original
patch.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Improve logging of checkpoints.
Next
From: pgunittest@pgfoundry.org (User Pgunittest)
Date:
Subject: pgunittest - pgUnitTest: New Directory