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 FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
unnest_1d
1
2
3
4
5
6
SELECT 6
unnest_2d
1
2
3
4
5
6
SELECT 6
unnest_2d_1d
{1,2}
{3,4}
{5,6}
SELECT 3
unnest_nd_1d
{1,2}
{3,4}
{5,6}
SELECT 3
unnest_nd_1d
{0,0}
{1,2}
{3,4}
{5,6}
{7,8}
{9,10}
{11,12}
SELECT 7
unnest_2d_1d
SELECT 0
unnest_2d_1d
{NULL,NULL,NULL}
{NULL,NULL,NULL}
SELECT 2