Re: [HACKERS] Database replication... - Mission Critical DBMS's -- Taking postgreSQL to the Enterprise Computing level...

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] Database replication... - Mission Critical DBMS's -- Taking postgreSQL to the Enterprise Computing level...
Date: 2002-10-30 15:30:45
Message-ID: 20021030103045.E9431@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Oct 29, 2002 at 03:56:46PM -0800, Greg Patnude wrote:

> I have read through all 7 chapters of the PG documentation and didn't see
> anything about replicating a postgreSQL database on a secondary database
> server and having the primary server push all data manipulations on through
> to the secondary server. The secondary server would be available (through
> the connect script) if the primary server died.
>
> Does anyone know of a reasonable means of synchronizing two (or more)
> postgreSQL database servers in order to maintain two COMPLETE concurrent
> copies of the same database ?

I think what you want is that any change, including schema changes,
&c., on the master database are echoed to the slave. I know rserv
can't do that, and I don't _think_ dbmirror can, either. But both of
those are possibilities. AFAIK, the contrib/rserv code is completely
broken in the 7.3 series, so dbmirror might be the free answer to
pick; rserv has a commercial cousin which we use.

The problem with these is that they send _data_ to the slave, and use
standard SQL statements. So sequences &c. are not carried over. You
need a script to do that. It's not an instantaneous failover.

On the other hand, if your client is comparing with Access, the
reliability will be so much better that perhaps some extra work in
the rare case of failure will be acceptable. It is for us, and we
have extremely stringent SLAs which constrain how long we could be
down if (heaven forfend!) our master database ever died.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Hrabarchuk 2002-10-30 15:30:56 Re: [SQL] Database Design tool
Previous Message David Blood 2002-10-30 15:29:57 Re: what selects

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Sullivan 2002-10-30 15:33:09 Re: Database replication... - Mission Critical DBMS's --
Previous Message Robert Treat 2002-10-30 15:18:47 Re: Database replication... - Mission Critical DBMS's --