Re: BUG #2905: min and max return incorrect text type - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2905: min and max return incorrect text type
Date
Msg-id 27858.1169403433@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #2905: min and max return incorrect text type  (Bruce Momjian <bruce@momjian.us>)
Responses Re: BUG #2905: min and max return incorrect text type  (Adriaan van Os <postgres@microbizz.nl>)
List pgsql-bugs
Bruce Momjian <bruce@momjian.us> writes:
> Peter Eisentraut wrote:
>> Aside from the apparent discrepancy between the documentation and the
>> actual behavior, is there an actual use case where this is a problem?

> No, I don't think so, and I am reluctant to adjust the documentation to
> say "or similar".

The documentation is correct as it stands: max(text) returns text.
Adriaan's complaint about max(varchar) is off base because there is
no such function.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Troubles in Initializing Postgres Database 8.2
Next
From: Peter Eisentraut
Date:
Subject: Re: BUG #2905: min and max return incorrect text type