Skip site navigation (1) Skip section navigation (2)

determining a type oid from the name

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: determining a type oid from the name
Date: 2012-02-22 18:00:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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?




pgsql-hackers by date

Next:From: Thom BrownDate: 2012-02-22 18:28:33
Subject: Re: determining a type oid from the name
Previous:From: Jeroen VermeulenDate: 2012-02-22 17:54:41
Subject: Re: VACUUM ANALYZE is faster than ANALYZE?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group