9.0 hot standby, consistent recovery state question

From: Filip Rembiałkowski <filip(dot)rembialkowski(at)gmail(dot)com>
To: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: 9.0 hot standby, consistent recovery state question
Date: 2013-08-28 18:26:59
Message-ID: CAP_rwwnFeCd7Sk1mV57nnYkjJxT=q5RnB4vAHiBzb6a+6=P8YA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.

I have Pg 9.0 wal shipping hot standby secondary server.

The primary is under constant stream of updates (avg 20 TXID/s).
There are many lengthy COPY FROM operations in the primary.

After every restart of secondary postgres I observe that it takes a
fair amount of time (sometimes few minutes, sometimes much more) to
replay new WAL logs achieve consistent state and start serving R/O
queries.

Even when R/O queries were served directly before the restart.

Why does postgres take so longto reach consistent state?

Can I ever try to impose a time limit on this? How?

What prevents postgres from using last consistent restart point from
before the cluster restart? This way I would not have to wait so long
after restart to serve R/O traffic.

Is this issue any different in 9.2?

Is this issue mitigated in any way if I switch on streaming replication?

thanks for any answers & suggestions.

Filip

Browse pgsql-general by date

  From Date Subject
Next Message Jay Vee 2013-08-28 19:30:29 pg_dump question (exclude schemas)
Previous Message Jeff Janes 2013-08-28 16:11:34 Re: postgres 9.2