pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi

pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi

pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi

pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi

pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi

pgsql: Fix handling of empty ranges and NULLs in BRIN

2023-05-18 Thread Tomas Vondra
Fix handling of empty ranges and NULLs in BRIN BRIN indexes did not properly distinguish between summaries for empty (no rows) and all-NULL ranges, treating them as essentially the same thing. Summaries were initialized with allnulls=true, and opclasses simply reset allnulls to false when processi