Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej1Md-0008GM-55 for pgsql-admin@arkaria.postgresql.org; Tue, 06 Feb 2018 11:24:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ej1Mc-0007tW-60 for pgsql-admin@arkaria.postgresql.org; Tue, 06 Feb 2018 11:24:38 +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.84_2) (envelope-from ) id 1ej1Mb-0007tI-S0; Tue, 06 Feb 2018 11:24:38 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ej1MY-0000tD-LG; Tue, 06 Feb 2018 11:24:36 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9FADA40A76; Tue, 6 Feb 2018 12:24:30 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id 2IIof6nr0wKD; Tue, 6 Feb 2018 12:24:23 +0100 (CET) Message-ID: <1517916261.2849.23.camel@cybertec.at> Subject: Re: PostgreSQL Active-Active From: Laurenz Albe To: Dhandapani Shanmugam , pgsql-admin , pgsql-general@postgresql.org Date: Tue, 06 Feb 2018 12:24:21 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dhandapani Shanmugam wrote: > Do we have active-active setup in postgreSQL, like we have in oracle RAC?. > Sorry if this question has been addressed already. > What will be best open source HA for postgresql with zero RTO and RPO. No, PostgreSQL does not have a shared storage cluster technology like RAC, and I don't think it ever will: too complicated, does not scale well (cache fusion, global SCN). The normal way is to use physical replication with some third-party cluster software that handles the failover. There is *always* a short down time, but it shouldn't be more than a minute. If you need to avoid data loss, use synchronous replication, but be aware that it requires a low latency network, else your write throughput will be very bad. Yours, Laurenz Albe