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 t (id int PRIMARY KEY);
CREATE TABLE t2 (id int, t_id int REFERENCES t ON UPDATE CASCADE);
CREATE TABLE t3 (id int, t_id int REFERENCES t ON UPDATE CASCADE);

INSERT INTO t VALUES (1);
INSERT INTO t2 VALUES (1,1);
INSERT INTO t3 VALUES (1,1);
1 rows affected
1 rows affected
1 rows affected
UPDATE t SET id = 42 WHERE id = 1;
1 rows affected
SELECT * FROM t2,t3;
id t_id id t_id
1 42 1 42