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 1n1txK-0003qG-2P for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Dec 2021 17:38:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n1txI-0004xq-Iv for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Dec 2021 17:38:40 +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 1n1txI-0004xh-A9 for pgsql-hackers@lists.postgresql.org; Mon, 27 Dec 2021 17:38:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1txC-0005uy-1r for pgsql-hackers@postgresql.org; Mon, 27 Dec 2021 17:38:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BRHcT4D1513655; Mon, 27 Dec 2021 12:38:29 -0500 From: Tom Lane To: Alvaro Herrera cc: Peter Eisentraut , Rahila Syed , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication In-reply-to: <202112271706.rcweqk4jqkyr@alvherre.pgsql> References: <202112271706.rcweqk4jqkyr@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 27 Dec 2021 14:06:18 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1513653.1640626709.1@sss.pgh.pa.us> Date: Mon, 27 Dec 2021 12:38:29 -0500 Message-ID: <1513654.1640626709@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Determining that an array has a NULL element seems convoluted. I ended > up with this query, where comparing the result of array_positions() with > an empty array does that. If anybody knows of a simpler way, or any > situations in which this fails, I'm all ears. Maybe better to rethink why we allow elements of prattrs to be null? regards, tom lane