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
CREATE TABLE
CREATE TABLE
INSERT 0 1
transaction_id | transaction_date | mutation |
---|
SELECT 0
transaction_id | transaction_date | mutation | effect |
---|---|---|---|
1fdf6681-bac1-48c6-8a01-a80e742acb8a | 2023-10-31 10:39:29.333697+00 | mutation1 | effect1 |
SELECT 1
transaction_id | effect |
---|
SELECT 0
INSERT 0 1
transaction_id | transaction_date | mutation |
---|---|---|
1fdf6681-bac1-48c6-8a01-a80e742acb8a | 2023-10-31 10:39:29.333697+00 | mutation1 |
SELECT 1
transaction_id | transaction_date | mutation | effect |
---|---|---|---|
1fdf6681-bac1-48c6-8a01-a80e742acb8a | 2023-10-31 10:39:29.333697+00 | mutation1 | effect1 |
SELECT 1
transaction_id | effect |
---|---|
1fdf6681-bac1-48c6-8a01-a80e742acb8a | effect1 |
SELECT 1