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:36:57
Message-ID: 46875999.8090808@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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?

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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-07-01 07:44:09 Re: pgsql: Improve logging of checkpoints.
Previous Message Tom Lane 2007-07-01 02:22:23 pgsql: Fix comments not updated in recent patch.

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-07-01 07:44:09 Re: pgsql: Improve logging of checkpoints.
Previous Message Alvaro Herrera 2007-07-01 03:57:57 Re: Something is fairly whacko about shutdown in CVS HEAD