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 1kVxDa-0007Nv-7x for pgsql-general@arkaria.postgresql.org; Fri, 23 Oct 2020 13:34:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxDZ-0006vu-5a for pgsql-general@arkaria.postgresql.org; Fri, 23 Oct 2020 13:34:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVxDY-0006vm-U7 for pgsql-general@lists.postgresql.org; Fri, 23 Oct 2020 13:34:52 +0000 Received: from smtp-zimbra.meteo.fr ([137.129.16.22] helo=celebrian2.meteo.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVxDW-0006Qn-1r for pgsql-general@postgresql.org; Fri, 23 Oct 2020 13:34:52 +0000 Received: from localhost (localhost [127.0.0.1]) by celebrian2.meteo.fr (Postfix) with ESMTP id AB9AE48415 for ; Fri, 23 Oct 2020 15:34:48 +0200 (CEST) Received: from celebrian2.meteo.fr ([127.0.0.1]) by localhost (celebrian2.meteo.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KjQZDl-gOPjG for ; Fri, 23 Oct 2020 15:34:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by celebrian2.meteo.fr (Postfix) with ESMTP id 92E874832C for ; Fri, 23 Oct 2020 15:34:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at celebrian2.meteo.fr Received: from celebrian2.meteo.fr ([127.0.0.1]) by localhost (celebrian2.meteo.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K9Q_GRhE4n1w for ; Fri, 23 Oct 2020 15:34:48 +0200 (CEST) Received: from zumba5.meteo.fr (zumba5 [172.31.9.201]) by celebrian2.meteo.fr (Postfix) with ESMTP id 7EE1D48209 for ; Fri, 23 Oct 2020 15:34:48 +0200 (CEST) Date: Fri, 23 Oct 2020 15:34:48 +0200 (CEST) From: PALAYRET Jacques To: pgsql-general@postgresql.org Message-ID: <1798752798.21016829.1603460088042.JavaMail.zimbra@meteo.fr> Subject: Conditional column filtering with pglogical replication MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_ad47c9f1-3568-40ec-85b1-2ed1beb98f0a" X-Originating-IP: [172.31.9.204] X-Mailer: Zimbra 8.7.11_GA_3822 (ZimbraWebClient - FF82 (Win)/8.7.11_GA_3822) Thread-Index: bNNqu+AAN0b1IFSI94S3ewa623s6jg== Thread-Topic: Conditional column filtering with pglogical replication List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_ad47c9f1-3568-40ec-85b1-2ed1beb98f0a Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=20 With PgLogical extension, I have tested the possibility of column filtering= (columns) and row filtering (row_filter).=20 But is there a way to do a conditional column filtering ?=20 I mean a way to filter a column based on a predicate, with pglogical (so th= e filtered values won=E2=80=99t arrive on subscribers).=20 For example, with a replicated table t(a integer as Primary Key, b numeric,= c integer, d text), I would like to filter the column b when c between 10 = and 20.=20 Regards=20 ----- M=C3=A9t=C3=A9o-France -----=20 PALAYRET JACQUES=20 DCSC/MBD=20 jacques.palayret@meteo.fr=20 Fixe : +33 561078319=20 --=_ad47c9f1-3568-40ec-85b1-2ed1beb98f0a Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

With PgLogical ex= tension, I have tested the possibility of column filtering (columns) and ro= w filtering (row_filter).
But is there a way to do a conditional column = filtering ?
I mean a way to filter a column based on a predicate, w= ith pglogical (so the filtered values won=E2=80=99t arrive on subscribers).=
For example, with a replicated table t(a integer as Primary Key, b nume= ric, c integer, d text), I would like to filter the column b when c between= 10 and 20.

Regards
----- = M=C3=A9t=C3=A9o-France -----
PALAYRET JACQUES
DCSC/MBD
jacques.pa= layret@meteo.fr
Fixe : +33 561078319
--=_ad47c9f1-3568-40ec-85b1-2ed1beb98f0a--