From: weigelt@metux.de
To: pgsql-admin@postgresql.org
Subject: Re: replication/redundancy
Date: Sat, 28 Jun 2003 23:42:32 +0200
Message-ID: <20030628214232.GA9075@metux.de> (raw)
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNIEJABNAC.dave@hawk-systems.com>
References: <DBEIKNMKGOBGNDHAAKGNIEJABNAC.dave@hawk-systems.com>
On Fri, Jun 27, 2003 at 08:05:02PM -0400, Dave [Hawk-Systems] wrote:
> some searches on this have produced mixed results...
>
> do we have a stable means to replicate transactions between two physical
> servers, preferrably in master - master configuration where updates/inserts can
> be done on either database and the results replicated to the other master.
I've integrated an replication support in my object abstraction layer in php.
(evrything is running over this layer - no direct queries in the application)
in short words:
each table has the fields inode_id (int4) and mtime (timestamp). on each write
operation, the mtime must be updated. from time to time (i.e. once per minute)
an script runs over the db, fetches out all new records and posts them to
the other nodes. this way, evry node can write anytime (masterless). but this
brings some problems on highly-written databases - conflicts may occour.
i didnt find an better solution yet, but still works for all of my apps,
even running over email :)
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux ITS
Webhosting ab 5 EUR/Monat. UUCP, rawIP und vieles mehr.
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact@metux.de
cellphone: +49 174 7066481 smsgate: sms.weigelt@metux.de
---------------------------------------------------------------------
Diese Mail wurde mit UUCP versandt. http://www.metux.de/uucp/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: weigelt@metux.de
Subject: Re: replication/redundancy
In-Reply-To: <20030628214232.GA9075@metux.de>
References: <DBEIKNMKGOBGNDHAAKGNIEJABNAC.dave@hawk-systems.com> <20030628214232.GA9075@metux.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox