By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
raw | canonicalized | lower | lower_inc | upper | upper_inc |
---|---|---|---|---|---|
(2023-01-01, 2023-01-31) | [2023-01-02,2023-01-31) | 2023-01-02 | t | 2023-01-31 | f |
(2023-01-01, 2023-01-31] | [2023-01-02,2023-02-01) | 2023-01-02 | t | 2023-02-01 | f |
[2023-01-01, 2023-01-31) | [2023-01-01,2023-01-31) | 2023-01-01 | t | 2023-01-31 | f |
[2023-01-01, 2023-01-31] | [2023-01-01,2023-02-01) | 2023-01-01 | t | 2023-02-01 | f |
SELECT 4