Re: BUG #1671: Long interval string representation rejected

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: BUG #1671: Long interval string representation rejected
Дата
Msg-id 428AD619.2040508@samurai.com
обсуждение исходный текст
Ответ на BUG #1671: Long interval string representation rejected  ("Mark Dilger" <markdilger@yahoo.com>)
Ответы Re: BUG #1671: Long interval string representation rejected  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Mark Dilger wrote:
> It appears that any string representation of an interval of length greater
> than 76 is rejected.  (76 = 51 + 25 = MAXDATELEN + MAXDATEFIELDS).  This
> appears to be a limitation enforced within function interval_in() in the
> file src/backend/utils/adt/timestamp.c

Yeah, this seems bogus. It's not even clear to me why MAXDATELEN +
MAXDATEFIELDS is used as the size of that buffer in the first place. I
don't know the datetime code particularly well; perhaps someone who does
can shed some light on this?

-Neil

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1672: Postgres 8.0 doesn't return errors.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1671: Long interval string representation rejected