Re: pgsql: Improve logging of checkpoints.

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Improve logging of checkpoints.
Date: 2007-07-01 07:44:09
Message-ID: 46875B49.2080206@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message User Pgunittest 2007-07-01 13:47:07 pgunittest - pgUnitTest: New Directory
Previous Message Heikki Linnakangas 2007-07-01 07:36:57 Re: pgsql: Improve logging of checkpoints.

Browse pgsql-hackers by date

  From Date Subject
Next Message KaiGai Kohei 2007-07-01 11:54:52 [ANN] SE-PostgreSQL 1.0 Beta released
Previous Message Heikki Linnakangas 2007-07-01 07:36:57 Re: pgsql: Improve logging of checkpoints.