Re: Cache lookup error when using jsonb, json_build_object and a WITH clause
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Cache lookup error when using jsonb, json_build_object and a WITH clause |
| Дата | |
| Msg-id | 17257.1399643277@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Cache lookup error when using jsonb, json_build_object and a WITH clause (Andres Freund <andres@2ndquadrant.com>) |
| Ответы |
Re: Cache lookup error when using jsonb, json_build_object and a WITH clause
|
| Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes:
> Whoa. There's two wierd things here:
> a) "jsonb" has a typcategory 'C'. Marking a composite type. "json" has
> 'U'.
Yeah, that's flat out wrong. I changed it before seeing your message.
> b) datum_to_json() thinks it's a good idea to use typcategory to decide
> how a type is output. Isn't that pertty fundamentally flawed?
Indeed. I think the bit that uses TYPCATEGORY_NUMERIC as a hint to decide
whether the value can be left unquoted (assuming it looks like a number)
might be all right, but the rest of this seems pretty bogus.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера