Determining the OID of a certain type - Mailing list pgsql-general

From Carsten Kropf
Subject Determining the OID of a certain type
Date
Msg-id EAD7FE76-57E4-4946-989D-3112EDEF01F7@fh-hof.de
Whole thread Raw
Responses Re: Determining the OID of a certain type
List pgsql-general
Hi *,
I wanted to ask, if there is a method to determine the oid of a certain type using the C backend interface? I need to
getaccess to a specific type for an IAM and therefore i want to construct an IndexTuple using the specified methods.
However,I need the OID of the specific type for it. I considered writing some auxiliary function that returns the OID
ofthe type using plpgsql. This works fine. However, I thought about something that I can use directly in C (server
side)to get the oid, or do I have to set up a query to the database? Querying is currently the way I go here. However,
itdoes not feel so right, to return the OID for the type I want to use, using a query. I hope, that there is some
predefinedfunction that I haven't found yet to determine the OID of some type (or relation etc). 

Best regards,
    Carsten Kropf

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: AIX postgresql error
Next
From: Tom Lane
Date:
Subject: Re: How to dump JUST procedures/funnctions?