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-02-08 06:26:09.271421+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-02-08 06:26:09.271421+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-02-08 06:26:09.277719+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-02-08 06:26:09.277719+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-02-08 06:26:09.282109+00 2020-07-07 12:22:33+01 foo1
SELECT 1
user_id user_name last_activity created custom_addition
1 foo 2024-02-08 06:26:09.282109+00 2020-07-07 12:22:33+01 foo1
SELECT 1
user_id user_name last_activity created
1 foo 2024-02-08 06:26:09.282109+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