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?.
9 rows affected
urlid | status | min | max |
---|---|---|---|
2 | inactive | 2019-07-15 | 2019-07-15 |
1 | active | 2019-06-15 | 2019-08-15 |
2 | active | 2019-06-15 | 2019-06-15 |
1 | active | 2019-11-15 | 2019-12-15 |
2 | active | 2019-08-15 | 2019-08-15 |
1 | inactive | 2019-09-15 | 2019-09-15 |