Re: PITR Error Message assistance

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: PITR Error Message assistance
Date: 2004-06-30 06:49:18
Message-ID: 200406300849.18058.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

Simon Riggs wrote:
> + elog(WARNING, "could not set notify for archiver to read log file
> %u, segment %u",

Reason? (disk full, network down, leap year?)

I think elog() calls don't get translated. You should always use
ereport. Tom would know more about the distinction.

> + ereport(LOG,
> + (errmsg("recovery.conf found...starting archive recovery")));

comma

> + elog(LOG, "redo: cannot restore \"%s\" from archive",
> restoreXlog);

Reason?

> + ereport(ERROR,
> + (errcode_for_file_access(),
> + errmsg("could not write archive_status file
> \"%s\" ",
> + tmppath)));

Reason?

> + elog(LOG, "redo: moving last restored xlog to %s", tmppath);

Probably a user doesn't know what "xlog" is. Also, I don't like the
prefix: style you use. Just tell what happened.

> + elog(LOG, "redo: rename failed");

We don't write "foo failed", but "could not do foo". And again: reason?

> + elog(LOG, "redo: archive chain ends; using local copy of \"%s\"",
> restoreXlog);

> + ereport(LOG,
> ! (errmsg("too many transaction log files, removing \"%s\"",
> xlde->d_name)));

How/where is the limit defined?

> + ereport(WARNING,
> + (errcode_for_file_access(),
> + errmsg("chkpt: cannot find archive_status file: %s ",
> + rlogpath)));

There is enough space that you can write "checkpoint". Or actually
don't write anything. What is the archive_status file?

> + elog(WARNING, "chkpt: archiving not yet started for log
> file %s",
> + xlog);

What does that tell me?

> DEBUG MESSAGES

Debug messages should have a DEBUG severity.

>
> + elog(LOG, "backend: written %s", rlogpath );
> +
>
> + elog(LOG, "postmaster: WAKEN_ARCHIVER received, sending SIGUSR1
> to archiver");
>
> + elog(LOG, "chkpt: archiving done for log file %s",
> + xlog);
>
> + elog(LOG, "redo: system(%s)", xlogRestoreCmd);

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Gaetano Mendola 2004-06-30 08:43:51 Re: How to list what queries are running in postgres?
Previous Message Joe Conway 2004-06-30 05:13:57 Re: grant execute on many functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2004-06-30 07:12:53 Re: recursive SQL
Previous Message Najib Abi Fadel 2004-06-30 06:39:29 Creating a selective aggregate ??