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 TABLE
CREATE FUNCTION
CREATE TRIGGER
id
1
INSERT 0 1
BEGIN
set_config
55
SELECT 1
id
2
INSERT 0 1
COMMIT
BEGIN
set_config
5x5
SELECT 1
id
3
INSERT 0 1
COMMIT
id
4
INSERT 0 1
id name created_at
1 HOUSE PARTY 1 2023-08-18 19:25:10.942098
2 HOUSE PARTY 2 2023-08-18 19:25:10.945727
3 HOUSE PARTY 3 2023-08-18 19:25:10.947722
4 HOUSE PARTY 4 2023-08-18 19:25:10.949537
SELECT 4
id house_id user_id created_at
1 1 null 2023-08-18 19:25:10.942098
2 2 55 2023-08-18 19:25:10.945727
3 3 null 2023-08-18 19:25:10.947722
4 4 null 2023-08-18 19:25:10.949537
SELECT 4