add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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 4
CREATE TABLE
INSERT 0 3
CREATE TABLE
t_id u_id
1 5
1 6
1 7
2 5
2 6
2 7
3 5
3 6
3 7
4 5
4 6
4 7
SELECT 12
t_id u_id
null 5
null 6
null 7
1 null
2 null
3 null
4 null
SELECT 7
t_id v_id
SELECT 0
t_id v_id
1 null
2 null
3 null
4 null
SELECT 4