Обсуждение: Warm Standby on 8.4.7

Поиск
Список
Период
Сортировка

Warm Standby on 8.4.7

От
Alanoly Andrews
Дата:

Hello,

 

Is it possible to set up a warm standby pair of postgres instances without using the pg_standby utility? The PG manuals appear to say it is possible. But I don’t see the details of how to set this up. How do you keep the standby instance in permanent recovery mode?

 

Thanks.

 

Alanoly.



This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.

Ce courriel est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser imm�diatement, par retour de courriel ou par un autre moyen.

Mail sent via the Abaca EPG


Re: Warm Standby on 8.4.7

От
Simon Riggs
Дата:
On Wed, Apr 13, 2011 at 8:53 PM, Alanoly Andrews <alanolya@invera.com> wrote:

> Is it possible to set up a warm standby pair of postgres instances without
> using the pg_standby utility? The PG manuals appear to say it is possible.
> But I don’t see the details of how to set this up. How do you keep the
> standby instance in permanent recovery mode?

It is possible. You just need to write a utility very similar to pg_standby.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Re: Warm Standby on 8.4.7

От
Jerry Sievers
Дата:
Alanoly Andrews <alanolya@invera.com> writes:

> Hello,
>
> Is it possible to set up a warm standby pair of postgres instances
> without using the pg_standby utility? The PG manuals appear to say it
> is possible. But I dont see the details of how to set this up. How
> do you keep the standby instance in permanent recovery mode?

Certainly if you implement the same or possibly extended logic yourself
in whatever language you are comfortable with.

Myself and others have been doing warm-standby since WALs were invented
:-)

When the company I work for started requiring that WS servers be helf
back a configurable time lag from production, I made some minor mods to
our version of the standby script, now written in Python, to make it
happen.

WALs now have to pass sanity and aging checks before being applied.

HTH


--
Jerry Sievers
Postgres DBA/Development Consulting
e: gsievers19@comcast.net
p: 305.321.1144

Re: Warm Standby on 8.4.7

От
Simon Riggs
Дата:
On Thu, Apr 14, 2011 at 1:06 PM, Alanoly Andrews <alanolya@invera.com> wrote:

> Thanks, Simon, for your quick response. I'll try it out with your pg_standby utility. And...if I may ask you one more
questionon the subject, once the standby is up and running, is there a way to determine whether it is in synch with the
primarydatabase (in terms of the last WAL applied)? I guess that the standby cannot be queried as it would be in
permanentrecovery mode. 

At 8.4, no, you cannot query the standby.

9.0 introduces the Hot Standby feature to allow you to query the standby.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services