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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Postgres C-API: How to get the Oid for a custom type defined in a schema outside of the current search path
Дата
Msg-id X8nNPmqSyKJHAVoJ@paquier.xyz
обсуждение исходный текст
Ответ на 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>)
Список 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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: postgres-10 with FIPS
Следующее
От: Dirk Mika
Дата:
Сообщение: Re: Set COLLATE on a session level