Re: JSON Function Bike Shedding
От
David E. Wheeler
Тема
Re: JSON Function Bike Shedding
Дата
Msg-id
4DBA33CD-9485-4503-B32C-8E42DEB58827@justatheory.com
Ответ на
Re: JSON Function Bike Shedding (Andrew Dunstan)
Список
Дерево обсуждения
JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Josh Berkus <josh@agliodbs.com>
Re: JSON Function Bike Shedding Tom Lane <tgl@sss.pgh.pa.us>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@kineticode.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding David E. Wheeler <david@justatheory.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding Alvaro Herrera <alvherre@2ndquadrant.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Pavel Stehule <pavel.stehule@gmail.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Andres Freund <andres@2ndquadrant.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding Tom Lane <tgl@sss.pgh.pa.us>
Re: JSON Function Bike Shedding Robert Haas <robertmhaas@gmail.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Robert Haas <robertmhaas@gmail.com>
Re: JSON Function Bike Shedding "Petr Jelinek" <pjmodos@pjmodos.net>
Re: JSON Function Bike Shedding Josh Berkus <josh@agliodbs.com>
Re: JSON Function Bike Shedding Pavel Stehule <pavel.stehule@gmail.com>
Re: JSON Function Bike Shedding Pavel Stehule <pavel.stehule@gmail.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Robert Haas <robertmhaas@gmail.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Robert Haas <robertmhaas@gmail.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Robert Haas <robertmhaas@gmail.com>
Re: JSON Function Bike Shedding "David E. Wheeler" <david@justatheory.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding Tom Lane <tgl@sss.pgh.pa.us>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding Andrew Dunstan <andrew@dunslane.net>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
Re: JSON Function Bike Shedding Josh Berkus <josh@agliodbs.com>
Re: JSON Function Bike Shedding Merlin Moncure <mmoncure@gmail.com>
On Feb 16, 2013, at 8:57 AM, Andrew Dunstan wrote: > I have had a look at doing something like this with the json_get functions. The trouble is that the best way to do it is to have json_get take "variadic any", but then string literals come in as unknown rather than as text, which makes things fairly ugly. If we force people to cast path elements to text then I think the cure is worse than the disease. I think the best we can do here is possibly to provide json_get and json_get_text taking either a single int or variadic text[], and json_get_path and json_get_path_text taking non-variadic text[]. Why not also one taking a single text? get(text) get(int) get(variadic text[]) ? David
В списке pgsql-hackers по дате отправления