Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sokHi-00DVYX-TZ for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Sep 2024 13:54:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sokHi-008qTg-Fi for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Sep 2024 13:54:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sokHi-008qSE-75 for pgsql-bugs@lists.postgresql.org; Thu, 12 Sep 2024 13:54:58 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sokHf-000oOI-EB for pgsql-bugs@lists.postgresql.org; Thu, 12 Sep 2024 13:54:57 +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 48CDsmmx4013672; Thu, 12 Sep 2024 09:54:49 -0400 From: Tom Lane To: m.michkov@arenadata.io cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18613: Incorrect output for foreign tables with NOT NULL constraints In-reply-to: <18613-08a94418126ae1a0@postgresql.org> References: <18613-08a94418126ae1a0@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 12 Sep 2024 07:28:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4013670.1726149288.1@sss.pgh.pa.us> Date: Thu, 12 Sep 2024 09:54:48 -0400 Message-ID: <4013671.1726149288@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > If foreign table data contains nulls while the table definition specifies a > NOT NULL constraint, some queries return wrong outputs. How is that not user error? regards, tom lane