Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 05E976330DF for ; Fri, 19 Feb 2010 09:27:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 19689-03-2 for ; Fri, 19 Feb 2010 13:27:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.afilias.info (outbound.afilias.info [69.46.124.26]) by mail.postgresql.org (Postfix) with ESMTP id 6F308633B13 for ; Fri, 19 Feb 2010 09:27:13 -0400 (AST) Received: from ms6.yyz2.afilias-ops.info ([10.50.129.112] helo=smtp.afilias.info) by outbound.afilias.info with esmtp (Exim 4.69) (envelope-from ) id 1NiSsx-0003BL-7O; Fri, 19 Feb 2010 13:27:11 +0000 Received: from tor-gateway.afilias.info ([199.15.87.4] helo=[10.10.46.12]) by smtp.afilias.info with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NiSsx-00084I-70; Fri, 19 Feb 2010 13:27:11 +0000 Subject: Re: Using Postgresql Replication From: Brad Nicholson To: Manasi Save Cc: pgsql-admin@postgresql.org In-Reply-To: <20100219054912.h2y7ff6n8up0kwgw@mail.artificialmachines.com> References: <20100219054912.h2y7ff6n8up0kwgw@mail.artificialmachines.com> Content-Type: text/plain Date: Fri, 19 Feb 2010 08:27:10 -0500 Message-Id: <1266586030.4412.63.camel@bnicholson-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.021 tagged_above=-10 required=5 tests=BAYES_20=-0.74, FS_REPLICA=1.041, SARE_SPEC_REPLICA=0.72 X-Spam-Level: * X-Archive-Number: 201002/146 X-Sequence-Number: 33749 On Fri, 2010-02-19 at 05:49 -0500, Manasi Save wrote: > Hi All, > > > I am very new to Postgres in that I have to setup replication. For > Which I am very confused between Postgres's replication types. > > I want a sychronized but a master-slave replication. > > I have read about Slony-I replication method. But I am confused if I > have to manually setup slony-I replication for all databases. As the > interface which I have seen for slony-I setup, it has given > replication tab under every database. With Slony, you must set up every database, table, and sequence you want to replicate yourself. Slony is an asynchronous replication engine, btw. > If I have to manually define replication master and slave node for any > database I am creating then it is not a feasible option for me to use > Slony-I. > > SLONY-I = Is it possible that all the databases getting created on > Master Node will be replicated to specified Slave node. Not possible. > > So, I thought of PGCluster. But it comes with multi-master > replication. > > PGCluster = Is it possible that I can configure Master-Slave > replication in PGCluster. > > > Please let me know if I am unclear in any point. Any input will be a > great help. What do you need replication for? DR? Query offloading? Custom schema or data transformations on a replica? Can you justify the cost warm standby hardware? -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.