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

From Dimitri Fontaine
Subject Re: hstores in pl/python
Date
Msg-id 87bp4n5apu.fsf@hi-media-techno.com
Whole thread Raw
In response to Re: hstores in pl/python  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: hstores in pl/python  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Wrong probem.  What we need is a way to identify a type without
> knowing in advance what its OID is.  In other words, we need to
> distinguish between the hstore type that is shipped in contrib, and
> some stupid DBA who types "CREATE DOMAIN hstore as text".

Yeah, yeah. Now, what's wrong with the query I sent?

To ease discussion:

=# select objid    from pg_extension_objects('hstore')   where class = 'pg_type'::regclass and objdesc ~
'(^|\.)hstore$';objid
 
-------16387
(1 row)

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Default mode for shutdown
Next
From: Tom Lane
Date:
Subject: Re: Complier warnings on mingw gcc 4.5.0