On Thu, Sep 27, 2012 at 10:09 AM, Andrew Dunstan <and...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers