| From: | Adriaan van Os <postgres(at)microbizz(dot)nl> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #2905: min and max return incorrect text type |
| Date: | 2007-01-19 16:01:33 |
| Message-ID: | 45B0EB5D.7070401@microbizz.nl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Bruce Momjian wrote:
> Adriaan van Os wrote:
>> The following bug has been logged online:
>>
>> Bug reference: 2905
>> Logged by: Adriaan van Os
>> Email address: postgres(at)microbizz(dot)nl
>> PostgreSQL version: 8.1.4
>> Operating system: Mac OS X 10.4.6, intel
>> Description: min and max return incorrect text type
>> Details:
>>
>> Table 9-37. Aggregate Functions in the Postgres docs states that the return
>> type for min and max is the "same as argument type".
>>
>> However, min(VARCHAROID) and max(VARCHAROID) return TEXTOID as a result
>> type.
>
> Yea, they are internally treated as very similar types.
But "internally treated as very similar" is still not "same as argument type". Computing requires
exactness.
Adriaan van OS
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-01-19 17:35:01 | Re: BUG #2904: COPY FROM -> permisson denied |
| Previous Message | Bruce Momjian | 2007-01-19 15:49:33 | Re: BUG #2905: min and max return incorrect text type |