Re: Postgres C-API: How to get the Oid for a custom type defined in a schema outside of the current search path - Mailing list pgsql-general

From Michael Paquier
Subject Re: Postgres C-API: How to get the Oid for a custom type defined in a schema outside of the current search path
Date
Msg-id X8nNPmqSyKJHAVoJ@paquier.xyz
Whole thread Raw
In response to Re: Postgres C-API: How to get the Oid for a custom type defined in a schema outside of the current search path  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
On Thu, Dec 03, 2020 at 01:45:05PM +0100, Pavel Stehule wrote:
> When you write C extensions for Postgres, then PostgreSQL source code is
> the best source of inspiration.

One common source of inspiration for such cases is regproc.c.  For a
type, you can for example look at what to_regtype() uses for a
conversion from a name string to an OID, aka parseTypeString().
--
Michael

Attachment

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: postgres-10 with FIPS
Next
From: Dirk Mika
Date:
Subject: Re: Set COLLATE on a session level