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 1m2xJ5-00059m-In for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jul 2021 14:53:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m2xJ3-0005re-RN for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jul 2021 14:53:13 +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 1m2xJ3-0005rV-2c for pgsql-hackers@lists.postgresql.org; Mon, 12 Jul 2021 14:53:13 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2xIz-0003Bf-9t for pgsql-hackers@postgresql.org; Mon, 12 Jul 2021 14:53:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 9C01B320031A; Mon, 12 Jul 2021 10:53:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 12 Jul 2021 10:53:05 -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=Ked1N0qSyhGM1xdV+NkNNtkiXG6aousaIcEqXekJSOk=; b=s2kCSsmh OwZ3Q9jKHd000p2lCVHjCzdw3br7eSdI32HIBWrl+BPfzrWnFXO9Yqqknq/uk5cS A8PGeSV+ldnMFtbSOmTQbhgz8q7Gk3t2fHJISAvyIZ80ZwHLtlansWnjN9IUqNlk aVg51bS9bvXb8DfLLh5O5+PE2jYbDqjCmcXg/clxxQ/se4e3xCZL3Sh21icDtCpB tY7iu/Z6OS0I5yb/iuSGHJ4/A7XSezohbuziGGkvhjbTkubyV+S4oNlcb9qsyjlQ r0a6l8I6m+d05Gh2VN97Yr4ArS5lLbnQCkbLr8fMisUWzru1lTOsbUXcRlifIbch wXJBtFXH6OXh3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Jul 2021 10:53:04 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E4CB82A0999; Mon, 12 Jul 2021 10:53:01 -0400 (-04) Date: Mon, 12 Jul 2021 10:53:01 -0400 From: Alvaro Herrera To: Tomas Vondra Cc: Rahila Syed , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202107121453.fnxj3xee3jkp@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-Jul-12, Tomas Vondra wrote: > FWIW "make check" fails for me with this version, due to segfault in > OpenTableLists. Apparenly there's some confusion - the code expects the > list to contain PublicationTable nodes, and tries to extract the > RangeVar from the elements. But the list actually contains RangeVar, so > this crashes and burns. See the attached backtrace. > > I'd bet this is because the patch uses list of RangeVar in some cases > and list of PublicationTable in some cases, similarly to the "row > filtering" patch nearby. IMHO this is just confusing and we should > always pass list of PublicationTable nodes. +1 don't make the code guess what type of list it is. Changing all the uses of that node to deal with PublicationTable seems best. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Cuando no hay humildad las personas se degradan" (A. Christie)