determining a type oid from the name - Mailing list pgsql-hackers

From Andrew Dunstan
Subject determining a type oid from the name
Date
Msg-id 4F452D57.8060603@dunslane.net
Whole thread Raw
Responses Re: determining a type oid from the name  (Thom Brown <thom@linux.com>)
List pgsql-hackers
Say I'm writing an extension X, and I want to process data values from 
another extension that creates type Y (e.g. an hstore), what's the best 
way to determine the Oid of type Y in my module X code? SPI code that 
runs "select 'something'::Y" and then examines the oid in SPI_tuptable? 
Or do we have a utility function I have missed that, given a type name 
and the current search path will give me back the type Oid?

cheers

andrew


pgsql-hackers by date:

Previous
From: Jeroen Vermeulen
Date:
Subject: Re: VACUUM ANALYZE is faster than ANALYZE?
Next
From: Thom Brown
Date:
Subject: Re: determining a type oid from the name