Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCI71-0006dk-64 for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 08:23:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lCI6z-0007Fs-2f for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 08:23:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCI6y-0007Fl-Oe for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 08:23:04 +0000 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lCI6s-0000kW-52 for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 08:23:03 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id 2so5923258qvd.0 for ; Wed, 17 Feb 2021 00:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=38MJ+wLwJs4AYu5skpM5LzWaCi194RjptFoxMPkq6us=; b=WMra6PDrna+G8oWaOb0dAEbq93ZkhS3aHBYqYYXZFeXoyPqoSqhtK40mrtVv/QElwm D06P89T2tMaeWIexf/buX9byakIz4BUbAHTEUIc4XVxXWolM0CsRE/ofHn6zI8+psvJH DQ0KudrvHkbYupNS7JZ/3YfaigTZOQrjXdVkF9jM/GLG0KFrSxrg6kQ1rrcod0kfur0h GqUzaVGq7ovFrrMqoBl7EFe50g0N2LMj3LDopXQSc37slqXTlfNdgGnuba+qzFn+L4Go oSj3SfDaJTs2YTckE4aJSeyY2YO/TaWOVpsujnH8lZv9m/su7gk/6ub+r014QH+pIcTu Hk6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=38MJ+wLwJs4AYu5skpM5LzWaCi194RjptFoxMPkq6us=; b=INEF1c7613oFBvIEiX9BF6WzBnUaHjiM6/4Ilpc1mozrTsz9gQzq3PgZqxpaWPbNdw CpZKt7VCcFiG0I8gdYaUuONaBy223Voql/S1dsX1P0Un518Mw5yKRgpUjRT59+8wKn1w R5lEOFPGB0+/LlEW2UvF/F+XTbf3K8XdnSDI3i8KKnEIzOdgqnG7d7jz2XIEMfnroS0p g3wLjEZGsZp2GCzgNqdS9O/WxsiRPyJS6m8rw/KvdHRiIxtcHX96nnPL6t8UFg1jhvev zYNxVO+zTlqXNH21sDbYTK2zfbrVL3VfWxM4u8gFGmBe2ND+EXBZJ5HCP0WprjAYXCsp hbQw== X-Gm-Message-State: AOAM532+DpaasFYNZZ0XKMs6oZAmKq1tGhg3p+MtgfPwIAzfGxD1u8Iv pfYsKi8HJ9SyWpMtxxpHhTjjyQ9hG58JKw== X-Google-Smtp-Source: ABdhPJwlSFJKW09Btd1Fmd8ZF4eznJLlowIc118KqrpkogDXLdY+1hnDbkJnsncbOTILm/ZxW79vnA== X-Received: by 2002:ad4:5a42:: with SMTP id ej2mr23614706qvb.60.1613550176247; Wed, 17 Feb 2021 00:22:56 -0800 (PST) Received: from [192.168.67.200] (dsl-66-36-157-191.mtl.aei.ca. [66.36.157.191]) by smtp.gmail.com with ESMTPSA id e92sm719456qtd.96.2021.02.17.00.22.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Feb 2021 00:22:55 -0800 (PST) To: Mutuku Ndeti Cc: pgsql-general@lists.postgresql.org References: From: Thomas Guyot Subject: Re: PostgreSQL Replication Message-ID: <5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.com> Date: Wed, 17 Feb 2021 03:22:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-02-16 09:28, Raul Giucich wrote: > This article will help you > https://wiki.postgresql.org/wiki/Multimaster > .  > > El mar., 16 feb. 2021 10:56, Mutuku Ndeti > escribió: > > Hi, > > Need some advice here. I have an application using PostgreSQL. I > need to install it on 2 servers for redundancy purposes and have 2 > databases. I need the DBs to replicate to each other, in real-time. > Writes can be done on both DBs.  > > Please let me know if this is a feasible setup and the best way to > proceed.  > Hi, While I have no experience with replication on pgsql, in general multi-master database replication is much more complex and often require a pretty rigid setup. The graphs on that page seems to tell the same story for pgsql. Are you sure you really need multi-master replication as opposed to having a single active master in a replicated set? If properly configured, cluster software can automatically fail over the active master, which provides very good redundancy and is much simpler from a technological standpoint. Regards, -- Thomas