X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id E37C73105BD for ; Sat, 28 Jun 2003 21:50:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 30930-10 for ; Sat, 28 Jun 2003 18:50:12 -0300 (ADT) Received: from annwfn.erfurt.igrz.de (annwfn.erfurt.igrz.de [195.190.142.1]) by svr1.postgresql.org (Postfix) with ESMTP id 5380A3105BC for ; Sat, 28 Jun 2003 18:50:11 -0300 (ADT) Received: from nibiru.UUCP (uucp@localhost) by annwfn.erfurt.igrz.de (8.12.9/8.12.9) with bsmtp id h5SLoArD020039 for pgsql-admin@postgresql.org; Sat, 28 Jun 2003 23:50:10 +0200 Received: (from weigelt@localhost) by metux.de (8.12.6/8.12.7) id h5SLgWQe009438 for pgsql-admin@postgresql.org; Sat, 28 Jun 2003 23:42:32 +0200 Date: Sat, 28 Jun 2003 23:42:32 +0200 From: weigelt@metux.de To: pgsql-admin@postgresql.org Subject: Re: replication/redundancy Message-ID: <20030628214232.GA9075@metux.de> Mail-Followup-To: pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-Message-Flag: Wenn dieser Text erscheint besteht enorme Virengefahr. Bitte verwenden Sie niemals Outlook oder Outlook Express. X-Archive-Number: 200306/340 X-Sequence-Number: 9331 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/