Re: BUG #17395: Assert failed on merge join when foreign range partition contains out-of-range value
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-02-05T15:50:57Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> 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
Commits
-
Doc: be clearer that foreign-table partitions need user-added constraints.
- d0cd7b77265c 14.2 landed
- cbadfc1f8aa7 15.0 landed
- 94199879b67a 11.15 landed
- 7d74ff82431b 13.6 landed
- 5d97181335b7 12.10 landed
-
Test, don't just Assert, that mergejoin's inputs are in order.
- f469f0678c30 12.10 landed
- dcfaa7c67e7b 10.20 landed
- d13a838e1c19 14.2 landed
- 9c7cf083f26e 13.6 landed
- 46bf1f2dc750 11.15 landed
- 5e26aa641e8a 15.0 landed