Re: json casts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: json casts
Дата
Msg-id 28714.1401828352@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: json casts  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: json casts
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> This was solved back in the day for the xml type, which has essentially
> the same requirement, by adding an ISO-8601-compatible output option to
> EncodeDateTime().  See map_sql_value_to_xml_value() in xml.c.  You ought
> to be able to reuse that.  Seems easier than routing through to_char().

I was wondering if we didn't have another way to do that.  to_char() is
squirrely enough that I really hate having any other core functionality
depending on it.  +1 for changing this.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: idle_in_transaction_timeout