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?.
id | date | bonus |
---|---|---|
4 | 2022-03-25 16:11:06.445559 | 7000 |
2 | 2022-03-15 16:11:06.445559 | 4000 |
1 | 2022-03-10 16:11:06.445559 | 6000 |
5 | 2022-03-30 16:11:06.445559 | null |
3 | 2022-03-20 16:11:06.445559 | null |
SELECT 5