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 INDEX
CREATE FUNCTION
CREATE TRIGGER
note_id | version | content |
---|---|---|
1 | 1 | my_own_text11 |
1 | 2 | my_own_text12 |
2 | 1 | my_own_text21 |
2 | 2 | my_own_text22 |
3 | 1 | my_own_text31 |
3 | 2 | my_own_text32 |
3 | 3 | my_own_text33 |
INSERT 0 7