PG Doc comments form <noreply@postgresql.org> writes:
> I would be helpful to add that NULLIF and COALESCE need to be of same data
> type.
That's not actually a correct statement ... which I guess just reinforces
your point that the behavior needs to be documented.
regards, tom lane