From: | Dobrica Pavlinusic <dpavlin(at)rot13(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: dbmirror -- recovery question |
Date: | 2003-08-12 14:51:51 |
Message-ID: | slrnbjhvms.p3h.dpavlin@dpavlinusic3.pliva.hr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
In article <71E37EF6B7DCC1499CEA0316A256832801057048(at)loki(dot)globexplorer(dot)com>,
"Gregory S. Williamson" wrote:
> I'm setting up a database in postgres which will have light traffic
> writing to a few tables (and somewhat heavier traffic reading them). We'd
> like to mirror that databse using dbmirror to two others.
>
> Let's assume that we're humming along and the master goes down. We switch traffic to read from one of the two slaves.
>
> What happens if we feel a need to add information while the master is down
> ? Reconfigure that former slave to be a master and then manually reconcile
> the former master when it is available, perhaps ?
>
> I didn't see anything in the documentation or in the postgres site about
> this (and I looked through the archives for references to dbmirror), so I
> apologize if I am issuing a faq.
While, this might not solve your problem (and dbmirror might have
solution of it's own for this) I would like to point out utility that
I'm working on right now called pgdiff. Since, it's so fresh I still
consider it somewhat experimental. Basically, it allows you to make
a diff of two databases on different hosts and spits out inserts,
selects and updates to sync databases.
Right now it's not clever enough to skip serial colums (or any other
with sequence attached to it), but as I said, I'm working on it (I'm
using it for regression tests on rserv, so it has to be accurate).
http://www.rot13.org/~dpavlin/sql.html
I must warn you that current version is one big perl script, and next
one will use Pg::Scheme module (which is actually a fork of this
command) so you'll have to download more than one file.
--
Dobrica Pavlinusic 2share!2flame dpavlin(at)rot13(dot)org
Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2003-08-12 15:03:59 | Re: Tsearch limitations |
Previous Message | Bruce Momjian | 2003-08-12 14:30:38 | Re: 7.4Beta1 "failed to create socket: Address family not |