From: Harsh Sinha <harsh.sinha@hp.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5892: Restart Failed after WAL restore
Date: Thu, 17 Feb 2011 12:11:56 GMT
Message-ID: <201102171211.p1HCBuMG050044@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5892
Logged by: Harsh Sinha
Email address: harsh.sinha@hp.com
PostgreSQL version: 8.3.7
Operating system: Windows
Description: Restart Failed after WAL restore
Details:
Hi,
We have implemented Continuous Archiving using the WAL technique. We have
tested it to be working. There is one condition where we are trying to
restore with around 34 WAL files. After the file transfers and creation of
the recovery.conf file. We start the PostgreSQL service from the Windows
services.msc
We also see the message "Archive Recovery Complete" in the logs under pg_log
folder. But Since restore takes a long time, The service manager reports
that the service has stopped, when actually after restore its running. Now
when we start the service again we get error:
Lock file 'postmaster.pid' already exists....
My analysis is that since windows gave up starting postgres, it put the
status as STOPPED. When restore completed after a long time Postgres created
postmaster.pid and started. Now when we try to start windows sees that there
is a postmaster file. This creates a deadlock situation.
Please let me know if you are aware of this issue or can help me solve this
prob
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-bugs@postgresql.org
Cc: harsh.sinha@hp.com
Subject: Re: BUG #5892: Restart Failed after WAL restore
In-Reply-To: <201102171211.p1HCBuMG050044@wwwmaster.postgresql.org>
References: <201102171211.p1HCBuMG050044@wwwmaster.postgresql.org>
* 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