BUG #18344: Pruning tables partitioned by bool range fails with invalid strategy
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Date: 2024-02-15T09:00:01Z
Lists: pgsql-bugs
The following bug has been logged on the website: Bug reference: 18344 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 16.2 Operating system: Ubuntu 22.04 Description: The following query: CREATE TABLE t (b bool, i int) PARTITION BY RANGE (b, i); CREATE TABLE tp PARTITION OF t FOR VALUES FROM (false, 0) TO (false, 1); SELECT * FROM t WHERE b IS NOT true; fails with ERROR: invalid strategy number 0. Reproduced on REL_12_STABLE .. master. The first bad commit for this anomaly is e0693faf7.
Commits
-
Minor corrections for partition pruning
- d2ca9a50b5b9 17.0 landed
-
Fix incorrect pruning of NULL partition for boolean IS NOT clauses
- 3ffcd24c29c6 12.19 landed
- 3850fcca69b5 13.15 landed
- f9c8f7ccd6e3 14.12 landed
- 1b3495e29db6 15.7 landed
- fb95cc72bfe7 16.3 landed
- 4c2369ac5d0a 17.0 landed