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
INSERT 0 2
id | lastname | firstname |
---|---|---|
1 | shaggk | fai55 |
2 | shaggk | fai55 |
3 | XXaggk | fai56 |
SELECT 3
user_id | sample_id | adddetails |
---|---|---|
1 | 1 | ss |
2 | 2 | ss |
3 | 3 | xx |
SELECT 3
id | user_id | value |
---|---|---|
1 | 1 | ss2 |
2 | 2 | ss2 |
3 | 3 | xx2 |
SELECT 3