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
CREATE FUNCTION
CREATE TRIGGER
CREATE FUNCTION
CREATE TRIGGER
id parent_id stime etime time_spent rate cost
1 null 2024-12-27 17:32:03.409727+00 null null null null
INSERT 0 1
when_
2024-12-27 18:32:03.429865+00
SELECT 1
DROP TABLE
id parent_id stime etime time_spent rate cost
1 null 2024-12-27 17:32:03.409727+00 2024-12-27 18:32:03.434025+00 01:00:00.024298 null null
UPDATE 1
ERROR:  relation "trigger2fired" does not exist
LINE 1: table trigger2fired;
              ^
id parent_id stime etime time_spent rate cost
1 null 2024-12-27 17:32:03.409727+00 2024-12-27 18:32:03.435504+00 01:00:00.025777 1 1.00000716027778
UPDATE 1
when_
2024-12-27 18:32:03.436236+00
SELECT 1
DROP TABLE
DROP TRIGGER
CREATE TRIGGER
id parent_id stime etime time_spent rate cost
1 null 2024-12-27 17:32:03.409727+00 2024-12-27 18:32:03.440233+00 01:00:00.030506 2 2.00001694777778
UPDATE 1
when_
2024-12-27 18:32:03.44117+00
SELECT 1