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 1mQqky-00083O-4t for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 12:44: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 1mQqkw-0002y2-Q5 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 12:44:46 +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 1mQqkw-0002xu-09 for pgsql-hackers@lists.postgresql.org; Thu, 16 Sep 2021 12:44:46 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQqks-00040K-Mu for pgsql-hackers@postgresql.org; Thu, 16 Sep 2021 12:44:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 0D31E32009C0; Thu, 16 Sep 2021 08:44:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 16 Sep 2021 08:44:39 -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=3jMfrPQj1JY1hrZ7VChSs5pbNeY+GPRwR0aVZiJURRA=; b=QMOi9If4 N1KVYO5rf2Raeu5T5ft0nzgpS2qFIqzsnY3K1JGAFY4G7fW5qRu/vdzJreUmd9qG Buz9Zi4ZhK6XgqtzOxVb82KoMae+K6D0K02PvotNNL5tFA8/oDieKoK/dZnQ2bD6 XaCj+iwCtA3RnG4YoCZG01aKzWOulBsbQqo+UiykeNK/lLG3GcJH2js+8/E9TTDB /9RcZQ524autLlHXBABaeC0oN4I633SoTb4N+vcRaULz8Rfl6EicJLBBS/gdZKat 2n6zLwQHenyhNVbzAiwmYMbunM3dU7xwx0Qsc/RoAEwO+LG+2V0xZdIAKYO5G8dj tCH2Jig8QboIWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Sep 2021 08:44:38 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1B00D2A0818; Thu, 16 Sep 2021 09:44:35 -0300 (-03) Date: Thu, 16 Sep 2021 09:44:35 -0300 From: Alvaro Herrera To: Amit Kapila Cc: vignesh C , Rahila Syed , Tomas Vondra , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109161244.e4ze4eaaj4b6@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 On 2021-Sep-16, Amit Kapila wrote: > I think the problem here is that with the proposed grammar we won't be > always able to distinguish names at the gram.y stage. Some post > parsing analysis is required to attribute the right type to name as is > done in the patch. Doesn't it work to stuff them all into RangeVars? Then you don't need to make the node type a monstrosity, just bail out in parse analysis if an object spec has more elements in the RV than the object type allows. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/