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

From Tom Lane
Subject Re: Determining the OID of a certain type
Date
Msg-id 15940.1269260288@sss.pgh.pa.us
Whole thread Raw
In response to Determining the OID of a certain type  (Carsten Kropf <ckropf2@fh-hof.de>)
Responses Re: Determining the OID of a certain type  (Carsten Kropf <ckropf2@fh-hof.de>)
List pgsql-general
Carsten Kropf <ckropf2@fh-hof.de> writes:
> I wanted to ask, if there is a method to determine the oid of a
> certain type using the C backend interface?

Starting from what?

For built-in types it's usual practice to use the #define from
pg_type.h, if there is one.  If you have a string name for the type,
there's a parser function to derive an OID, which I forget the name
of but it's probably in parse_type.c.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to dump JUST procedures/funnctions?
Next
From: "Rob Richardson"
Date:
Subject: Re: Daylight savings time confusion