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?.
now | version | setseed |
---|---|---|
2024-05-01 20:37:00.744756+01 | PostgreSQL 15.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit |
SELECT 1
SELECT 24
id | updated_at |
---|---|
ID1 | 2024-03-04 23:55:54.582789+00 |
ID2 | 2024-03-19 15:00:02.19655+00 |
SELECT 2
id | updated_at |
---|---|
ID1 | 2024-03-04 23:55:54.582789+00 |
ID1 | 2024-04-10 09:30:05.329453+01 |
ID2 | 2024-03-19 15:00:02.19655+00 |
ID2 | 2024-03-27 15:19:13.823159+00 |
SELECT 4