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?.
5 rows affected
10 rows affected
setval |
---|
5 |
tag_id | tag |
---|---|
1 | a |
2 | b |
3 | c |
4 | d |
5 | e |
6 | f |
blog_id | blog |
---|---|
1 | foo |
2 | bar |
3 | baz |
4 | XXX |
5 | YYY |
blog_id | tag_id |
---|---|
1 | 1 |
1 | 2 |
1 | 3 |
2 | 2 |
2 | 3 |
2 | 4 |
3 | 3 |
3 | 4 |
3 | 5 |
3 | 6 |