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 2
pg_sleep |
---|
SELECT 1
CREATE PROCEDURE
CALL
id | a | b | c | a_tstz | b_tstz | c_tstz |
---|---|---|---|---|---|---|
2 | 4 | 5 | 6 | 2022-11-07 12:43:45.521336+00 | 2022-11-07 12:43:45.521336+00 | 2022-11-07 12:43:45.521336+00 |
1 | 1 | 2 | null | 2022-11-07 12:43:55.569869+00 | 2022-11-07 12:43:45.521336+00 | 2022-11-07 12:43:55.569869+00 |
SELECT 2