question about access custom enum type from C

Поиск
Список
Период
Сортировка
От Dmitry Markman
Тема question about access custom enum type from C
Дата
Msg-id 5023677D-1E99-40C6-A537-F7F95BF202EB@mac.com
обсуждение исходный текст
Ответы Re: question about access custom enum type from C  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
Hi, when I’m trying to access values of my custom enum type I created with

create type colors as enum ('red', 'green', 'brown', 'yellow', 'blue');

I’m getting oid as 16387 and I can see it stored as a chars

is number 16387 is always OID for enum type?

if not how I can get information about type of the result if it’s custom enum type

thanks in advance

dm




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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: Solaris "sed" versus pre-v13 plpython tests
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] Add native windows on arm64 support