"=?iso-8859-1?Q?H=E9lder_M._Vieira?=" <hmv(at)mail(dot)telepac(dot)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