From: | Andrew Hannon <ahannon(at)fiksu(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Adding Additional Standby |
Date: | 2011-09-03 15:35:04 |
Message-ID: | 1FC679A3-966A-4C7D-B1F3-52E9A3264240@fiksu.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
We have an existing master-slave setup running on 9.0. I was looking into adding a new hot standby into this setup — I have added a script that satisfies the requirements of the archive_command, but it isn't clear to me how to add this new standby into the mix. Is it as simple as calling pg_start_backup to create a new base backup and then starting postgresql on the new machine once the base backup has completed? Aren't there syncing issues to consider? My intuition tells me that the standbys need to be in sync for the archive_command to work (since it simply passes in a filename that is expected to get copied over).
Initially, I was planning on pausing replication on the existing standby, and running replication on the new stanby to catch up to the same xid as the old standby. However, I then discovered that pausing isn't supported on 9.0 (but will be on 9.1). Does stopping postgresql on the existing standby have the same effect? Am I doing something unusual here? Is it possible to do what I am attempting to do?
Thank you very much!
Andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2011-09-03 16:30:45 | Re: Adding Additional Standby |
Previous Message | Bret Fledderjohn | 2011-09-03 03:26:54 | Re: Looking for an intro-to-SQL book which is PostgreSQL-friendly |