"Hélder M. Vieira" <hmv@mail.telepac.pt> writes:
> If max() operates on a 'varchar' type column, the result appears with 'text'
> type.
> Should I expect this behaviour in the current and later versions ?
This is true of just about everything, not only max() -- there are *no*
functions yielding varchar in recent PG releases.
regards, tom lane