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 1nGNLg-0007Mk-Mm for pgsql-bugs@arkaria.postgresql.org; Sat, 05 Feb 2022 15:51:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGNL9-0004TY-3h for pgsql-bugs@arkaria.postgresql.org; Sat, 05 Feb 2022 15:51:07 +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 1nGNL8-0004TO-RX for pgsql-bugs@lists.postgresql.org; Sat, 05 Feb 2022 15:51:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGNL3-0001EK-VS for pgsql-bugs@lists.postgresql.org; Sat, 05 Feb 2022 15:51:06 +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 215FovXs531525; Sat, 5 Feb 2022 10:50:58 -0500 From: Tom Lane To: exclusion@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17395: Assert failed on merge join when foreign range partition contains out-of-range value In-reply-to: <17395-8c326292078d1a57@postgresql.org> References: <17395-8c326292078d1a57@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 05 Feb 2022 06:00:01 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <531523.1644076257.1@sss.pgh.pa.us> Date: Sat, 05 Feb 2022 10:50:57 -0500 Message-ID: <531524.1644076257@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: > The following query: > [ foreign partition that doesn't contain the expected data ] > causes an assertion failure with the following stack: Hm. I suppose we have to reduce that assert to an actual runtime test. More generally, though, it seems like the documentation is not nearly clear enough that it's on the user's head to make sure that a foreign partition's contents meet the partition constraint. Sec. 5.11.2 punts the matter to the CREATE FOREIGN TABLE man page, which is okay, but CREATE FOREIGN TABLE doesn't lay it out with any degree of clarity either. regards, tom lane