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

From Heikki Linnakangas
Subject Re: pgsql: Improve logging of checkpoints.
Date
Msg-id 46875999.8090808@enterprisedb.com
Whole thread Raw
In response to pgsql: Improve logging of checkpoints.  (tgl@postgresql.org (Tom Lane))
Responses Re: pgsql: Improve logging of checkpoints.
List pgsql-committers
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

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix comments not updated in recent patch.
Next
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Improve logging of checkpoints.