Re: Replication options in Postgres - Mailing list pgsql-general

From Ian Turner
Subject Re: Replication options in Postgres
Date
Msg-id Pine.LNX.4.21.0007311916230.12874-100000@crafter.house
Whole thread Raw
In response to Replication options in Postgres  (Erich <hh@cyberpass.net>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 1. In my PHP code, I have functions like
> inserttransaction(values...).  I could just modify inserttransaction()
> so that it runs the same query (the INSERT) on two or more DB
> servers.  This would probably work ok.

Why not have a proxy server that your clients talk to, which replicates
the transaction across the other (independent) backend servers, and only
returns OK if all the backends return OK.

Then, theoretically, your databases should always remain concurrant. You
could dump & diff them periodically to make sure.

Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5hjM7fn9ub9ZE1xoRAtevAJ9v7Ik/wtasCyTgeCx+zsYvYQWL4QCgubgx
PE0m/X6VoY7+ESZS/p3CIlQ=
=b6Bv
-----END PGP SIGNATURE-----


pgsql-general by date:

Previous
From: "K Parker"
Date:
Subject: Openlink ODBC drivers for Unix
Next
From: "Cheng Kai"
Date:
Subject: How to alter the size of a column