Richard Harvey Chapman <hchapman(at)3gfp(dot)com> writes:
> Question: Why isn't 12 printed after the second SELECT statement?
NULL arguments/results for user functions are a longstanding problem
(check the list archives). This is finally fixed in current sources
for 7.1, but there's no good workaround in existing releases.
regards, tom lane