Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> Today I ran into a problem relating to $subject. plpgsql's handling
> of 'null' composite types is not consistent with what you get in sql:
Hm. It looks like plpgsql treats composite arguments as being "row"
instead of "record" variables, which has some possible efficiency
benefits but there's no way to represent the whole row being null, as
opposed to existing but having all null fields. Not sure how painful
it'd be to change to "record" representation.
regards, tom lane