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?.
version
PostgreSQL 13.13 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit
SELECT 1
CREATE TABLE
INSERT 0 6
somekey other_stuff
1 otos_1
2 otos_2
3 otos_3
4 otos_4
5 otos_5
6 otos_6
SELECT 6
CREATE TABLE
INSERT 0 3
id some_row some_other_row
1 1000 sor_100
2 2000 sor_200
3 3000 sor_300
SELECT 3
transaction_isolation
read committed
SHOW
SET
SET
transaction_isolation
read committed
SHOW
BEGIN
id
4
SELECT 1
max
4
SELECT 1
COMMIT
max
4
SELECT 1
id some_row some_other_row
1 1000 sor_100
2 2000 sor_200
3 3000 sor_300
4 4000 sor_400
SELECT 4
mt_id mt_sr mt_sor ot_sk ot_os
5 4000 sor_400 5 otos_5
SELECT 1
id some_row some_other_row
1 1000 sor_100
2 2000 sor_200
3 3000 sor_300
4 4000 sor_400
5 4000 sor_400
SELECT 5