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 4
id elem nr
1 ab 1
1 cd 2
1 efg 3
2 jk 1
3 null null
4 null null
SELECT 6
id elem nr
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id elem nr
1 ab 1
1 cd 2
1 efg 3
2 jk 1
3 null null
4 null null
SELECT 6
id elem nr
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id elem nr
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id a ordinality
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id a ordinality
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id a ordinality
1 ab 1
1 cd 2
1 efg 3
2 jk 1
SELECT 4
id elements arr a ordinality
1 ab,cd,efg {ab,cd,efg} ab 1
1 ab,cd,efg {ab,cd,efg} cd 2
1 ab,cd,efg {ab,cd,efg} efg 3
2 jk {jk} jk 1
SELECT 4