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 2
CREATE FUNCTION
user_id user_name last_activity
1 foo 2024-10-31 03:51:23.626605+00
SELECT 1
user_id user_name last_activity
2 bar 2020-08-09 00:33:44+01
SELECT 1
user_id user_name last_activity created
1 foo 2024-10-31 03:51:23.626605+00 2020-07-07 12:22:33+01
2 bar 2020-08-09 00:33:44+01 2020-08-08 23:33:44+01
SELECT 2
CREATE FUNCTION
user_id user_name last_activity created
1 foo 2024-10-31 03:51:23.634003+00 2020-07-07 12:22:33+01
SELECT 1
user_id user_name last_activity created
2 bar 2020-08-09 00:33:44+01 2020-08-08 23:33:44+01
SELECT 1
user_id user_name last_activity created
1 foo 2024-10-31 03:51:23.634003+00 2020-07-07 12:22:33+01
2 bar 2020-08-09 00:33:44+01 2020-08-08 23:33:44+01
SELECT 2
CREATE FUNCTION
user_id user_name last_activity created custom_addition
1 foo 2024-10-31 03:51:23.637844+00 2020-07-07 12:22:33+01 foo1
SELECT 1
user_id user_name last_activity created custom_addition
1 foo 2024-10-31 03:51:23.637844+00 2020-07-07 12:22:33+01 foo1
SELECT 1
user_id user_name last_activity created
1 foo 2024-10-31 03:51:23.637844+00 2020-07-07 12:22:33+01
2 bar 2020-08-09 00:33:44+01 2020-08-08 23:33:44+01
SELECT 2