question about access custom enum type from C - Mailing list pgsql-hackers

From Dmitry Markman
Subject question about access custom enum type from C
Date
Msg-id 5023677D-1E99-40C6-A537-F7F95BF202EB@mac.com
Whole thread Raw
Responses Re: question about access custom enum type from C
List 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 by date:

Previous
From: Noah Misch
Date:
Subject: Re: Solaris "sed" versus pre-v13 plpython tests
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH] Add native windows on arm64 support