Re: data to json enhancements - Mailing list pgsql-hackers

From Robert Haas
Subject Re: data to json enhancements
Date
Msg-id CA+TgmoaKFX8YxdG2wJe7oiNBHpo4TojSUZC-mCkj5=yKyuHGow@mail.gmail.com
Whole thread Raw
In response to Re: data to json enhancements  (Andrew Dunstan <andrew@dunslane.net>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: data to json enhancements
Next
From: Misa Simic
Date:
Subject: Re: data to json enhancements