Re: data to json enhancements

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: data to json enhancements
Дата
Msg-id CA+TgmoaKFX8YxdG2wJe7oiNBHpo4TojSUZC-mCkj5=yKyuHGow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: data to json enhancements  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Thu, Sep 27, 2012 at 10:09 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
> So how about this suggestion: we'll look for a visible function named
> "as_json" or some such which has one parameter of the given type and returns
> json, and if it's present use it instead of the standard text
> representation. As an optimization we'll skip that lookup for builtin types,
> since there won't be one. Of course, we'll have one for hstore.

I think that general approach has some promise, although there are
some security issues to worry about.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: data to json enhancements
Следующее
От: Misa Simic
Дата:
Сообщение: Re: data to json enhancements