Re: hstores in pl/python - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: hstores in pl/python
Date
Msg-id 28163BEC-6BC8-4ACB-8745-554E8CDC0525@phlo.org
Whole thread Raw
In response to Re: hstores in pl/python  (James William Pye <lists@jwp.name>)
Responses Re: hstores in pl/python  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-hackers
On Dec15, 2010, at 02:14 , James William Pye wrote:
> On Dec 13, 2010, at 6:16 PM, Tom Lane wrote:
>> how do you identify which type OID is really hstore?
> 
> How about an identification field on pg_type?
> 
> CREATE TYPE hstore ..., IDENTIFIER 'org.postgresql.hstore';
> -- Where the "identifier" is an arbitrary string.

+1

I've wanted something like this a few times when dealing
with custom types within a client. A future protocol version
might even transmit these identifiers instead a the type's OID,
thereby removing the dependency on OID from clients entirely.

best regards,
Florian Pflug



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Default mode for shutdown
Next
From: Dimitri Fontaine
Date:
Subject: Re: hstores in pl/python