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 1sVpur-00Bt8H-2s for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 10:05:13 +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 1sVpun-00H98h-FF for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 10:05:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVpum-00H98Z-Vw for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 10:05:09 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sVpug-000q5X-OV for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 10:05:08 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3d9de9f8c8dso2255891b6e.1 for ; Mon, 22 Jul 2024 03:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721642702; x=1722247502; 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=CQBrxTRO6mabthqpBWd4Vey29QIrAQW7DfgO2WZW8kM=; b=gVKOTahGOUrmX/pxsXv4UHaj+lZn5gPQEDnEsHc9/2iHojejncFLc5+bp2Qgh5Uevq ODwMxr1cE3cKOFCl3rMnJVN7UwijivD2FRqHDZ3R6AQK6+wJfcFOYrB+ah48MbbhkAgU eeaKv4ct8Vw5MTRDbdETKSYZzrbtPQ/uegt5H7WRqCFjlnENq7fVdH67Sx84BzgEWLwy Ftfys1Nu90VIld8JIiExtGD5yEv4x8GtNiv7do2gcbFGZl6axaXJYPfohvkyvTgyKtRu mB8vF1cOnVuUIesHX/lrlwMq3rGpoWdG6D65RSctAaUZkp364FJa7ugzCdic1L911Abg 9Wmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721642702; x=1722247502; 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=CQBrxTRO6mabthqpBWd4Vey29QIrAQW7DfgO2WZW8kM=; b=B2VL49vA/spEHmkXrjpFOSTlbFoJBNIoTgyiFJC9wW67xeR62iEnFsC/UEgOM2KIXE taz8O8YqPTL6EEgqqCDdLsnpA9GChMG4jgoQUCNc5meprLDx4FI2gmOhXJpGb07yWarz 7sd3w5Bi1Tm+b157z8wY9gFgTxGfblvxMvEXyaPvwnmqui1T0TBOvlNkXczylfo02t4M Ddx/0/ApJ0giEWkQCFww7h5qMYYgJKxMTWBJ1CdW8BJ4uxzSleIJk0MqSrNIwicj2qLG oNOvBspSMaNHggwXlbovnpATLide2hT4GgHliQPC/b1qx+ev6jW941Pe7fAqp/OsMTDL ZjMg== X-Gm-Message-State: AOJu0Yz9d5c8fsPP7ievm8VI634bA5Gs4mlzMvge0RM4CBaBw7nAp0BE DNCnP8eyqJ1zqV0Wyc9Ziuw+QyFCmupriCaDBJr+h52Z8b3Oo/h6CLK38Bvxx6mtEMSnu7zZ3Tj 7tIO+rvgk7X2TSFCfsExrDXmNxw== X-Google-Smtp-Source: AGHT+IFWHXrWtPsH8lhZWCAMvGK1t4T4Y2iyvAokoz0vpX0/nZYexwQfrWvRRnyGXh1w0+j1cVkKL8uRspZ7PJin4wA= X-Received: by 2002:a05:6808:1441:b0:3da:b22d:a5ab with SMTP id 5614622812f47-3dae97f7bfdmr6588824b6e.49.1721642702082; Mon, 22 Jul 2024 03:05:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: khan Affan Date: Mon, 22 Jul 2024 15:04:51 +0500 Message-ID: Subject: Re: Regarding publish_via_partiton_root with pglogical To: Durgamahesh Manne Cc: pgsql-general@lists.postgresql.org, pgsql-in-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000b01c54061dd32d1d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b01c54061dd32d1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Durgamahesh In pglogical extension, there is no direct equivalent to the publish_via_partition_root option found in the built-in logical replication you can achieve similar results when a new partition is added; you must add it to the replication set using pglogical.replication_set_add_table. Similarly existing partitions are reorganized or split, ensure to update the replication sets accordingly. Thanks & Regards *Muhammad Affan (*=EC=95=84=ED=8C=90*)* *PostgreSQL Technical Support Engineer** / Pakistan R&D* Interlace Plaza 4th floor Twinhub office 32 I8 Markaz, Islamabad, Pakistan On Sat, Jul 20, 2024 at 12:00=E2=80=AFPM Durgamahesh Manne < maheshpostgres9@gmail.com> wrote: > Hi > > Respected Team > > I know the use case of implementing the partitions with publication and > subscription of built-in logical replication > CREATE PUBLICATION dbz_publication FOR TABLE betplacement.bet WITH > (publish_via_partition_root =3D true); This will use parent table to repl= ica > data changes to target from source > But > Could you please provide a logic to implement the same with pglogical ? > Do i need to add this publish_via_partition_root to > pglogical.replication_set_add_table functionality ? > you response is valuable in this aspect > > Regards, > Durga Mahesh > --000000000000b01c54061dd32d1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Durgamahesh

In pglogical extens= ion, there is no direct equivalent to the publish_via_partition_root option= found in the built-in logical replication

you can achieve similar r= esults=C2=A0when a new partition is added; you must add it to the replicati= on set using pglogical.replication_set_add_table. Similarly existing partit= ions are reorganized or split, ensure to update the replication sets accord= ingly.

Thanks &=C2=A0Regards


Muhammad Affan (=EC= =95=84=ED=8C=90)

Postgre= SQL Technical Support Engineer=C2=A0/ Pakistan R&D<= /span>


On Sat, Jul 20, 2024 at 12:00=E2=80=AFPM Durgamahesh Manne <<= a href=3D"mailto:maheshpostgres9@gmail.com">maheshpostgres9@gmail.com&g= t; wrote:
Hi

Respected Team=C2=A0
=
I know the use case of implementing the partitions=C2=A0with= publication and subscription of built-in logical replication=C2=A0
CREATE PUBLICATION dbz_publication FOR TABLE betplacement.bet WITH (publ= ish_via_partition_root =3D true); This will use parent table to replica dat= a changes to target from source=C2=A0
But
Could you= please=C2=A0provide a logic to implement the same with pglogical ?
Do i need to add this publish_via_partition_root to pglogical.replicatio= n_set_add_table functionality ?
you response is valuable in this = aspect=C2=A0

Regards,
Durga Mahesh
= --000000000000b01c54061dd32d1d--
Interlace Plaza 4th = floor Twinhub office 32 I8 Markaz, Islamabad, Pakistan