Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoGb-00010U-34 for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:49:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBoGZ-0004AW-Gw for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:49:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoGY-0004AO-Pj for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:49:39 +0000 Received: from sonic304-12.consmr.mail.bf2.yahoo.com ([74.6.128.35]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoGV-0003Xc-Qk for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:49:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1539553773; bh=tf4aOoeJKwc2rTnTnSqUFqfDa78vXSlz5nIYuRRHvfk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=Lf+ohm26Su7J0yz57A1AiCNjmnRgCnKMgCDn2iyQz1jL59eRSyKNVhdaBuH9q6I2aeb/F61oC9h27bfbcRmiKOACmjwfQ/jcBI+hgTzi9oNrQtCh/HoUvUXxoxLQOHozBJq0NWsPwNvWd8DBcDrMdCU3474BM8vve+vQqiwOPqGwVF7LPeFk/hd7Heq00w0yxpPNt3GEx6SrPhI33oxqpq7ynG85xaOFTDuc+WDf0NIQBDBw7CkOIF6A+kdiMWnXKLf7/jApJ5oZsxGql0sTrp1T6Ld48TwEdH24OUBDrBaex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Ue7HOuXnav6H33DmrNQAy6Wt9DOklN_U41Z2bt w..o.xcxPN_BYgoAX_SsRPXZTycQIKh.q55e8Fottd8ZBKcnpAgm06GsDe0nA2pgdqw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sun, 14 Oct 2018 21:49:33 +0000 Received: from c-69-248-80-3.hsd1.nj.comcast.net (EHLO [10.0.0.217]) ([69.248.80.3]) by smtp415.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ed8405bd3275886e12e0ecf9b61b2da0; Sun, 14 Oct 2018 21:49:31 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Slot issues From: Ravi Krishna In-Reply-To: Date: Sun, 14 Oct 2018 17:49:30 -0400 Cc: bhargavpostgres@gmail.com, andres@anarazel.de, pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <36CCE7FA-BD81-409F-AE79-224C1FB68053@aol.com> References: <20181014202042.gi6o3kitjvczc5ym@alap3.anarazel.de> <20181014211054.wxsekk3lqmdlacos@alap3.anarazel.de> To: Vijaykumar Jain X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk When I read all such posts related to replication I realize how backward = is PG's replication architecture specially when compared to DB2. =20 This is how it is done in Db2 to set up replication. 1. take a full backup on the primary. 2. restore the backup on the other machine (aka standby) 3. start the instance on the standby machine as a standby and point to = primary as the master 4. that's it. Db2 will fetch the relevant WAL (active) logs and start = applying the logs to catch up. 5. Once it has caught up with the primary, it is in PEER mode. To failover from master to slave On the standby issue db2 takeover database dbname that's it. it will flip master and standby and reverse their roles. [ I am aware that why it is impossible in PG to reverse roles like this = ] Long time back I use to work in SQL Server and the setup of mirroring = was as simple as DB2. Negative of db2 replication: In DB2 replication, lot of restriction on = standby to be used as a read-only. One DDL statement or stats collection in the primary will put the = standby in replay only mode where it will kick out all sessions on standby until DDL/stats is applied on = standby also. Note: My knowledge of db2 replication is bit dated as I have not worked = on it since 2014. I love PG, but definitely replication management can be better.=