Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> What seems odd to me is that NEW is apparently some other kind of
> thing that is not the same kind of thing as the row variable.
NEW is a record variable, not a row variable. In this context that's
sensible because its actual rowtype is unspecified by the function text.
The implications for row-null handling aren't obvious though :-(
regards, tom lane