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?.
10 rows affected
original_id | duplicate_id | tag |
---|---|---|
3 | 3 | control |
6 | 6 | control |
2 | 2 | control |
5 | 5 | control |
9 | 9 | control |
1 | 1 | treatment |
7 | 7 | treatment |
4 | 4 | treatment |
10 | 10 | treatment |
8 | 8 | treatment |
10 rows affected
original_id | duplicate_id | tag |
---|---|---|
1 | 1 | treatment |
2 | 2 | treatment |
3 | 3 | control |
4 | 4 | control |
5 | 5 | control |
6 | 6 | treatment |
7 | 7 | treatment |
8 | 8 | treatment |
9 | 9 | control |
10 | 10 | control |