Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6WSn-0006IQ-Px for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2024 14:15:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s6WRp-000Wsl-LJ for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2024 14:14:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6WRp-000Wsa-AY for pgsql-general@lists.postgresql.org; Mon, 13 May 2024 14:14:37 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s6WRl-0001Dq-Ft for pgsql-general@lists.postgresql.org; Mon, 13 May 2024 14:14:36 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-51f57713684so5519451e87.1 for ; Mon, 13 May 2024 07:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715609673; x=1716214473; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QI61eHsfyxMnllQ8Q6sic+zvotmyw4REf0//ngtaFZE=; b=FhXzwwMj8+wvy11DbKxzZj2UJuUOScVzF+u9zvP1pOa0AjgAK0DO/HWSaA5B3jTzf/ 9HzROCg57i5QsIq7QcxO3zOi4ZKGt6Mr/WmnNUba4kfh1yQta8oGpkKD/b1KZchH9uq6 Qa/Hfg9BGoWod0oGgBH8B4mFor6tBS7CZWPLwRYgmgph6FQOJPV732cn0mvkgt7mMTBk xHA52agNxld0wLJEozGVdMPuj0xcGmddJ0PPB/ypfryk9RWmIS5fKPtQ01Xuapx11K5Z 7/Pd9D7nnUX3u8A/5lglLI0DEffuBbLUOO+mN7WfmVEuzManwx0GatHdyEsPwwrjDJI3 QiOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715609673; x=1716214473; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QI61eHsfyxMnllQ8Q6sic+zvotmyw4REf0//ngtaFZE=; b=G1uxp2DjcdOb+6JD7EUiwnWBEjpzqWaBfMWyc0ReupOs+8usoEAGeAw6UzEP08UVOg ZuFVALLFzNbTEDw9GQUOQjcmbPXMipWIfJiN6BLWDaa6DiM/kw981QOliUzVoeUoxK30 13s5lClHpZVS6o1/5xlY4nyg5Vy4FjMvCuj4ZcCIbRDDycCRRMbKKF4bXrD97aAdl2GS bDEF9F8MaHcknZv+JlObMRGx1lxWMle8JzVh9UrSYxvddQ1/IQwU3KmFP7GfU7WyBzen pnmqubsQZKy/93z4A3G4f3bpYq70aJBEWSpeaTBH1wjS2dYTp19ZfmsGp9ZQRv0XJdRT 4fbQ== X-Forwarded-Encrypted: i=1; AJvYcCWA96CrUwdgh1bb1qsxHj18c06E6DTBQUlpHyu4mqUu2F5wuxQxGNiHfQH/w9idrIyLDlorkjoEOq1MjHz9fcxlXxgmh6zacEkXYFWgqTJdY0U/ X-Gm-Message-State: AOJu0Yx9xos5q9YEcFKhPcgvcrgZap6m5AMq/Yk4njlFuUniBEV0DNU7 zzq5LXzTFq8+utB+QvlYzw72P0/EFULPz2ZGhQl92biKqPp6lVMqL/LUkUeugRvqrH7hFdsS6CK 0GzRsTvTkE0N1E+mblRPsAUGbtVxSOmst X-Google-Smtp-Source: AGHT+IFLnsqtiaC2ansHTLC+KQclHWgp4okcdwcRTk/ou4/94k6H1u/GSkrczfc+2aBaJzVkqY9+1NujqyhD90Iqsic= X-Received: by 2002:a05:6512:a8a:b0:516:d219:3779 with SMTP id 2adb3069b0e04-5220ff73861mr6901399e87.58.1715609672968; Mon, 13 May 2024 07:14:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Mon, 13 May 2024 10:13:54 -0400 Message-ID: Subject: Re: Postgresql active-active nodes in cluster To: Vidyashree H S Cc: Bruce Momjian , Kashif Zeeshan , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000021724d061856812b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000021724d061856812b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 13, 2024 at 2:53=E2=80=AFAM Vidyashree H S < Shreevidya.hs@exaleapsemi.com> wrote: > > - Is that multi master replication is not recommended to do ? > > No, it is not recommended, as it has a very, very narrow use case, and comes with a lot of drawbacks. Sure, you COULD configure your car to also be able to ride across the river like a boat, but it's far easier to use a bridge, or a barge. And now your car is harder to care for, and has a lot more ways in which it could break. > > - If we can do, can I get any resource for implementing that on > PostgreSQL which is open-source? > > You still have not told us your use case. That can help us to guide you t= o the right solution. But for totally open source solutions there are not many out there. Here are some: * https://github.com/JumpMind/symmetric-ds * https://github.com/bucardo/bucardo You can also in theory use logical replication if at least version 16: * https://www.crunchydata.com/blog/active-active-postgres-16 Cheers, Greg --00000000000021724d061856812b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, May 13, 2024 at 2:53=E2=80=AFAM V= idyashree H S <Shreevid= ya.hs@exaleapsemi.com> wrote:
  • Is that multi master replication is not recommended to do ?
=

No, it is not recommended, as = it has a very, very narrow use case, and comes with a lot of drawbacks. Sur= e, you COULD configure your car to also be able to ride across the river li= ke a boat, but it's far easier to use a bridge, or a barge. And now you= r car is harder to care for, and has a lot more ways in which it could brea= k.
  • If we can do, can I = get any resource for implementing that on PostgreSQL which is open-source?<= /span>
You still have not told us yo= ur use case. That can help us to guide you to the right solution. But for t= otally open source solutions there are not many out there. Here are some:


You can also in theory=C2=A0use logical repl= ication if at least version 16:


Cheers,
Greg

--00000000000021724d061856812b--