Re: JSON in 9.2 - Could we have just one to_json() function instead of two separate versions ?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: JSON in 9.2 - Could we have just one to_json() function instead of two separate versions ? |
| Дата | |
| Msg-id | 12299.1336162346@sss.pgh.pa.us обсуждение |
| Ответ на | Re: JSON in 9.2 - Could we have just one to_json() function instead of two separate versions ? (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: JSON in 9.2 - Could we have just one to_json()
function instead of two separate versions ?
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, May 4, 2012 at 3:49 PM, Hannu Krosing <hannu@krosing.net> wrote:
>> Can we at least have the xxx_to_json() functions try cast to json first
>> and fall back to text if the cast fails.
> I think the idea that you can involve the casting machinery in this is
> misguided.
It is possible that that can be made to work, but it's a research
project, not something to be crammed into 9.2 at the last possible
minute. In any case, I really dislike the idea that array_to_json
and row_to_json would contain two entirely different behaviors.
Leave the extensibility ideas for a future to_json() function.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера