Re: [HACKERS] Null handling and plpython

2009-08-06 Thread Tom Lane
Peter Eisentraut writes: > And then, what is the supposed semantics of calling a nonstrict input > function with NULL as the cstring value? InputFunctionCall() requires > that the return value is null if and only if the input cstring was > NULL, "but we'll call the input function anyway". Couldn

[HACKERS] Null handling and plpython

2009-08-06 Thread Peter Eisentraut
I'm reviewing the plpython data type handling patch from the commit fest. I have not dealt much with the plpython code before, and I'm a bit puzzled by its elaborately silly handling of null values. A representative example (for the current code): if (tupdesc->attrs[at