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 1mQsVM-0004sA-4q for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 14:36: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 1mQsVL-00030e-2K for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 14:36: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 1mQsVK-00030V-RG for pgsql-hackers@lists.postgresql.org; Thu, 16 Sep 2021 14:36:46 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQsVE-0004qP-66 for pgsql-hackers@postgresql.org; Thu, 16 Sep 2021 14:36:46 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CB44D32001C6; Thu, 16 Sep 2021 10:36:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 16 Sep 2021 10:36:37 -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=GO6DGaTF78z/zXvbsbh94SUqrqJAuCWLZ4qy2GjQNtc=; b=F34P5x/C hTli4Bk0nuZpmb8W124Skf4Yahk/LZ+aOMkz1jcH1MonJB1xq+UDME3iVuxNR8TU kjobIt35GkiQvFrICJul8HzQDEo1WNTv/K5OTMu2ZlWJuU/uUPPYkJS59EBEN6hD R2QE/QRF8H4TZzC0fTE62VbY5rcYafhwVdARvxkrBxvoedbvuyOwGWtePRRY5hg0 43xCCJua8bwRNQ91RzlLK2QFw3xwWTdqoTw+dMGU/boA1T2yA0kDKugIUniYwf1o 6EO3JFwAWhaiup3/8YvD3WznctguL5F240H0IaiRqa4NsLMk8EkZVEn5l/St2V6m okYeFcEl8v1iNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Sep 2021 10:36:35 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6DD0E2A0818; Thu, 16 Sep 2021 11:36:32 -0300 (-03) Date: Thu, 16 Sep 2021 11:36:32 -0300 From: Alvaro Herrera To: vignesh C Cc: Amit Kapila , Rahila Syed , Tomas Vondra , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109161436.3z5fhpsalhs3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202109161350.kccziuuu25ex@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Sep-16, Alvaro Herrera wrote: Actually, something like this might be better: > PublicationObjSpec: > | TABLE qualified_name > { > $$ = makeNode(PublicationObjSpec); > $$->pubobjtype = PUBLICATIONOBJ_TABLE; > $$->pubrvobj = $2; > $$->location = @1; > } > | ALL TABLES IN_P SCHEMA name > { > $$ = makeNode(PublicationObjSpec); > $$->pubobjtype = PUBLICATIONOBJ_ALL_TABLES_IN_SCHEMA; > $$->pubplainobj = $5; > $$->location = @1; > } So you don't have to cram the schema name in a RangeVar, which would indeed be quite awkward. (I'm sure you can come up with better names for the struct members there ...) -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Porque francamente, si para saber manejarse a uno mismo hubiera que rendir examen... ¿Quién es el machito que tendría carnet?" (Mafalda)