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 1mLiWe-0005yy-C3 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Sep 2021 08:56:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLiWd-0001p1-5T for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Sep 2021 08:56:47 +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 1mLiWc-0001ot-Tm for pgsql-hackers@lists.postgresql.org; Thu, 02 Sep 2021 08:56:46 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLiWb-0003B4-Cg for pgsql-hackers@postgresql.org; Thu, 02 Sep 2021 08:56:46 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C7FED5C01A9; Thu, 2 Sep 2021 04:56:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 02 Sep 2021 04:56:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=NKzr7obB3HZfPblyX9v6/PXMpSfLILd058vSIXIiLiQ=; b=BccCJZ0I royoqd7yakn/BDVGRRSE6RZJM/IbTUHvEW4ZyIyChiBVUj83cAuqaLfML5GH7VmX lCb84mgFfXKV2zwzi0C47cOqlV/KAWeB8kiqwS68uWXafDxIBee+L+I9fnRZwFsY /TWj9EQ3cbtUxuTqSavKtEpfiYZnhk+zLGbFjCXOdVugtK8BKxbqavi+edKT8MhS d/fJNSR6DkHVe6l3i3NUYGIdJLK1uKgXYD0OdDi5lpLP6u/qtPwl8Pkjm8qAdHvz YGATLOm0Mxeyrr0O4+xI1G0ygYb1XmgJlliOylcSGjrLl4SsBdxlHds7Az93P1Y9 wzcXI8M0grLX0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 04:56:43 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DE94D2A06ED; Thu, 2 Sep 2021 04:56:39 -0400 (-04) Date: Thu, 2 Sep 2021 04:56:39 -0400 From: Alvaro Herrera To: Rahila Syed Cc: Amit Kapila , Tomas Vondra , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109020856.pci3iwnl5l7k@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I think the WITH RECURSIVE query would be easier and more performant by using pg_partition_tree and pg_partition_root. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ "Porque Kim no hacía nada, pero, eso sí, con extraordinario éxito" ("Kim", Kipling)