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 1nmFUJ-0001jF-8T for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2022 13:56:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmFUI-0000Bu-38 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2022 13:56:18 +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 1nmFUH-0000Bk-Pk for pgsql-hackers@lists.postgresql.org; Wed, 04 May 2022 13:56:17 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmFUF-00046o-Bh for pgsql-hackers@lists.postgresql.org; Wed, 04 May 2022 13:56:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AC0195C016A; Wed, 4 May 2022 09:56:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 04 May 2022 09:56:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1651672574; x=1651758974; bh=h2NxIWyXquhJV Oq+2uGBSubFcsQvrrNDrIhNbEF/OuA=; b=tKuTVZmZa7+s+MykA3r3v0hned2kx aK61icn9ueJc0rItaGOMKHw6Dotdcok7ZcJK05An4lmXOJ9tDuaAJEdqTqjTxLps qi9uD2pToX+ynBUu98xHAc3NHmB/WtEDK8+PthEeKCL4njIcNXPFyKiEbi9htAvj q7ETODmv1NQrwRAi77OscJ5RGCeQVJN4Rrj+ekVvTYyCsFaVS7FoucKWYhRw0CqB vojDgM6M+tyelagitYc/j4g7j/ZrK9eFj7y+x0xGXg98P0XD6iDzycP70v9ZgUQy ThU6p6MgmXUyF/ngT9mKhnp3gbrKY7/zFgNwFj1wFDYY7ImlwOc5AdlGQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefh leetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 May 2022 09:56:13 -0400 (EDT) Message-ID: <6cb47e40-14d4-d29b-d45c-d62f20c091e8@enterprisedb.com> Date: Wed, 4 May 2022 15:56:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: bogus: logical replication rows/cols combinations Content-Language: en-US To: Tomas Vondra , Amit Kapila Cc: Alvaro Herrera , Pg Hackers References: <006d5ffc-1e7a-5cf2-c507-88eee6e0c14d@enterprisedb.com> <202204270943.4ol7indtwv3i@alvherre.pgsql> <39077967-c327-eddb-ac4b-7d64117944fb@enterprisedb.com> <338e719c-4bc8-f40a-f701-e29543a264e4@enterprisedb.com> <47dd2cb9-4e96-169f-15ac-f9407fb54d43@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 03.05.22 21:40, Tomas Vondra wrote: > So what's wrong with merging the column lists as implemented in the v2 > patch, posted a couple days ago? Merging the column lists is ok if all other publication attributes match. Otherwise, I think not. > I don't think triggers are a suitable alternative, as it executes on the > subscriber node. So you have to first copy the data to the remote node, > where it gets filtered. With column filters the data gets redacted on > the publisher. Right, triggers are not currently a solution. But you could imagine a redaction filter system that runs on the publisher that modifies rows before they are sent out.