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?.
CREATE TABLE
INSERT 0 6
title | author | created_at | post_num |
---|---|---|---|
Johns first post | John | 2021-01-01 | 1 |
Johns second post | John | 2021-01-02 | 2 |
Johns third post | John | 2021-01-03 | 3 |
Mikes first post | Mike | 2021-01-01 | 1 |
Mikes second post | Mike | 2021-01-02 | 2 |
Mikes third post | Mike | 2021-01-03 | 3 |
SELECT 6