Re: Further issues with jsonb semantics, documentation

Поиск
Список
Период
Сортировка
Искать
От
Jim Nasby
Тема
Re: Further issues with jsonb semantics, documentation
Дата
Msg-id
5571F5F4.5070207@BlueTreble.com
Ответ на
Список
Дерево обсуждения
Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Further issues with jsonb semantics, documentation Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: Further issues with jsonb semantics, documentation Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Further issues with jsonb semantics, documentation Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Further issues with jsonb semantics, documentation Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Tom Lane <tgl@sss.pgh.pa.us>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation "David E. Wheeler" <david@justatheory.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Robert Haas <robertmhaas@gmail.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Andrew Dunstan <andrew@dunslane.net>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
Re: Further issues with jsonb semantics, documentation Peter Geoghegan <pg@heroku.com>
On 6/5/15 2:08 PM, Petr Jelinek wrote:
> That's a good point, and it won't get any better if/when we add the json
> point support in 9.6 since the syntax would be something like select
> jsonb '{"a":"1", "b":"2", "c": {"a": "2"}}' - '/c/a'; and we will again
> silently do nothing. That's going to cause bugs in applications using this.

Yeah, this is a miniature version of the pain I've felt with variant: 
trying to get sane casting for a data type that encompasses other types 
in current Postgres is essentially impossible. Your only option is to 
put implicit or assignment casts in and cross your fingers, or to do 
only explicit casts and force the user to cast everything (which is a 
PITA). Even a json_pointer type may not help this much unless we have 
some way to reliable transform an unknown into a json_pointer.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com


В списке pgsql-hackers по дате отправления
От: Jeff Janes
Дата:
От: Alvaro Herrera
Дата:
FAQ