Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp
Дата
Msg-id 75961.1445362084@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> Petr Jelinek <petr@2ndquadrant.com> writes:
>> I think the json code does not need to have custom
>> handling of infinity but could just call the EncodeSpecialTimestamp() if
>> it was exported from the timestamp module.

> Meh.  We'd have to change its API too, because it is expecting to print
> into a fixed buffer.  I think probably easier to just duplicate the check.

But on second thought, that would have the json code knowing more about
timestamps than timestamp_out does, which seems like pretty bad design.
I'll change it as you suggest.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #13688: lack of return value in r_mark_regions()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #13688: lack of return value in r_mark_regions()