X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C810FD81C8 for ; Thu, 25 Aug 2005 11:47:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00781-01 for ; Thu, 25 Aug 2005 14:47:38 +0000 (GMT) Received: from mail.libertyrms.com (unknown [207.219.45.62]) by svr1.postgresql.org (Postfix) with ESMTP id E6B02D81D2 for ; Thu, 25 Aug 2005 11:47:36 -0300 (ADT) Received: from dba5.int.libertyrms.com ([10.1.3.44]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1E8J13-0008Cs-K0 for pgsql-general@postgresql.org; Thu, 25 Aug 2005 10:47:41 -0400 Message-ID: <430DDA0D.8090800@ca.afilias.info> Date: Thu, 25 Aug 2005 10:47:41 -0400 From: Brad Nicholson User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: Postgresql replication References: <20050824173106.76233.qmail@web53210.mail.yahoo.com> <430D6558.8040605@travelamericas.com> In-Reply-To: <430D6558.8040605@travelamericas.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-SA-Exim-Mail-From: bnichols@ca.afilias.info X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 required=5 tests=[AWL=-0.013, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/1274 X-Sequence-Number: 82682 Chris Travers wrote: > Carlos Henrique Reimer wrote: > >> I read some documents about replication and realized that if you plan >> on using asynchronous replication, your application should be >> designed from the outset with that in mind because asynchronous >> replication is not something that can be easily “added on” after the >> fact. >> Am I right? > > > Depending on your needs, you may find pgpool and Slony to be a > workable combination. This is better when you have a lot of reads and > only occasional writes. This way writes get redirected back to the > master, and read-only transactions get run on the slaves. As long as you don't have any functions that write to the db. pgpool could (and likely would) redirect some of these to the subscriber. Slony would prevent the data from being written (which would prevent the subscriber from being corrupted). -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.