Re: BUG #2905: min and max return incorrect text type

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #2905: min and max return incorrect text type
Дата
Msg-id 200701211443.l0LEhrv24550@momjian.us
обсуждение исходный текст
Ответ на Re: BUG #2905: min and max return incorrect text type  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: BUG #2905: min and max return incorrect text type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Peter Eisentraut wrote:
> Adriaan van Os wrote:
> > >> 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.
>
> 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".

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: BUG #2905: min and max return incorrect text type
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Troubles in Initializing Postgres Database 8.2