Re: Oid registry - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Oid registry
Date
Msg-id 506229B5.9030305@gmx.net
Whole thread Raw
In response to Re: Oid registry  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 9/25/12 9:18 AM, Andrew Dunstan wrote:
> No, the difficulty (or at least the first difficulty) is in having the
> code recognize that it has an hstore at all. The code picks apart the
> record field by field at run time and takes various actions depending on
> the field's type. For any type it doesn't recognize it just outputs the
> value as a string, and so that's what it does with hstore. Mostly this
> is the right thing but in the hstore case it's rather sad.

But if you have a cast defined from hstore to json, then it is
unambiguous, because the pg_cast entry binds the types together by OID.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Oid registry
Next
From: Peter Eisentraut
Date:
Subject: Re: Oid registry