Re: Replication: slave is in permanent startup 'recovery'

From: "Henry C(dot)" <henka(at)cityweb(dot)co(dot)za>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Replication: slave is in permanent startup 'recovery'
Date: 2011-04-14 07:45:55
Message-ID: 53291e77138e9c8eb0de616832399814.squirrel@zenmail.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, April 13, 2011 20:15, Henry C. wrote:
> If I try and execute a long-lived SQL query on the slave, it eventually fails
> with "canceling statement due to conflict with recovery". Replication is
> definitely working (DML actions are propagated to the slave), but something
> is amiss.

Let me ask the question another way.

Following the hints at http://wiki.postgresql.org/wiki/Streaming_Replication:

Between the primary and standby hosts, pg_current_xlog_location() and
pg_last_xlog_receive_location()/select pg_last_xlog_replay_location() show
what appears to be normal activity (ie, replication is happening successfully,
and the numbers indicate health).

primary% ps -ef | grep sender
standby% ps -ef | grep receiver

...show things talking nicely and the numbers match.

ps also shows a startup process recovering logs on the standby (which I assume
is normal behaviour).

However, a SELECT eventually fails with "canceling statement due to conflict
with recovery".

Where else can I check, or what else can I do to determine what the problem is?

Thanks

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-04-14 08:01:40 Re: Replication: slave is in permanent startup 'recovery'
Previous Message John R Pierce 2011-04-14 06:17:49 Re: SSDs with Postgresql?