Re: Oid registry

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Oid registry
Date: 2012-09-25 21:45:14
Message-ID: 506225EA.9080105@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 9/24/12 10:26 PM, Andrew Dunstan wrote:
> Well, an obvious case is how record_to_json handles fields. If it knows
> nothing about the type all it can do is output the string value. That
> doesn't work well for types such as hstore. If it could reliably
> recognize a field as an hstore it might well be able to do lots better.

I think the fix there is that the type supplies a "to JSON" function as
part of its type definition (just like input and output functions). "to
XML" would also be useful. Most types wouldn't need them and default to
string output.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2012-09-25 21:53:04 Re: Oid registry
Previous Message Andrew Dunstan 2012-09-25 19:57:54 new buildfarm client release 4.8