Re: "could not open relation with OID" errors after promoting the standby to master

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Joachim Wieland <joe(at)mcknight(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: "could not open relation with OID" errors after promoting the standby to master
Date: 2012-05-22 13:50:38
Message-ID: CA+TgmoZ302iqH+gUu7LnApucekw8GvLOua6kaN+bW3YCCLUhUw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 15, 2012 at 10:37 PM, Joachim Wieland <joe(at)mcknight(dot)de> wrote:
> If it matters, I have not promoted the master with a trigger file but
> restarted it after deleting recovery.conf.

Hmm. I think that if you do it this way, the minimum recovery point
won't be respected, which could leave you with a corrupted database.
Now, if all the WAL files that you need are present in pg_xlog anyway,
then they ought to get replayed anyway, but I think that if you are
using restore_command (as opposed to streaming replication) we restore
WAL segments under a different file name, which might cause this
problem.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-05-22 14:01:58 Re: Readme of Buffer Management seems to have wrong sentence
Previous Message Robert Haas 2012-05-22 13:46:56 Re: enhanced error fields