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?.
4 rows affected
id | will_be_propagated | target |
---|---|---|
1 | t | Hello |
2 | t | World |
3 | f | null |
4 | f | null |
4 rows affected
id | description | foo_id | foo_will_be_propagated | foo_target |
---|---|---|---|---|
1 | watcher_1 | 1 | t | Hello |
2 | watcher_2 | 2 | t | World |
3 | watcher_3 | 3 | f | null |
4 | watcher_4 | 4 | f | null |
1 rows affected
1 rows affected
1 rows affected
1 rows affected
id | will_be_propagated | target |
---|---|---|
1 | t | Alpha |
2 | t | Beta |
3 | f | Gamma |
4 | f | Delta |
id | description | foo_id | foo_will_be_propagated | foo_target |
---|---|---|---|---|
3 | watcher_3 | 3 | f | null |
4 | watcher_4 | 4 | f | null |
1 | watcher_1 | 1 | t | Alpha |
2 | watcher_2 | 2 | t | Beta |