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?.
version |
---|
PostgreSQL 14.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4), 64-bit |
8 rows affected
id | audit_id | val | updated_at |
---|---|---|---|
1 | 14 | 34 | 2022-01-23 09:41:00 |
1 | 12 | 34 | 2021-10-11 23:03:00 |
2 | 24 | 211 | 2022-05-13 04:02:00 |
2 | 23 | 205 | 2022-01-12 10:15:00 |