1 2 3 4
/* postgres can not */ /* syntax version 1 */ $f = ($x,$y?)->($x + ($y ?? 0)); select $f(1), $f(2, 3);