From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Richards <michael@fastmail.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: Database in recovery mode
Date: Sun, 06 Aug 2000 01:45:21 -0400
Message-ID: <24260.965540721@sss.pgh.pa.us> (raw)
In-Reply-To: <398B100F.0000AB.63030@frodo.searchcanada.ca>
References: <398B100F.0000AB.63030@frodo.searchcanada.ca>
"Michael Richards" <michael@fastmail.ca> writes:
> I've got a postgres system that keeps going into recovery mode. I
> can't really find any docs on this. All of the postgres processes
> will be in the STOP state and when I try to connect it will say "The
> database is in recovery mode".
> I suspect there is a query that is causing it to crash in some
> specific way that causes it. This is happening about once per day.
Sounds like that to me too. Are any core dump files showing up in the
database directory (PGDATA/base/DBNAME/core)? If so a stack trace
from the corefile would be informative. Also, make sure you are
collecting a postmaster log --- do NOT start the postmaster with -S,
instead direct its stdout and stderr into a logfile --- and see if
anything interesting is recorded therein. You might want to start the
postmaster with -d2 so that the actual queries are logged too.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@fastmail.ca
Subject: Re: Database in recovery mode
In-Reply-To: <24260.965540721@sss.pgh.pa.us>
References: <398B100F.0000AB.63030@frodo.searchcanada.ca> <24260.965540721@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox