question about access custom enum type from C

From: Dmitry Markman <dmarkman(at)mac(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: question about access custom enum type from C
Date: 2022-09-01 04:28:07
Message-ID: 5023677D-1E99-40C6-A537-F7F95BF202EB@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-09-01 04:41:59 Re: [PATCH] Add native windows on arm64 support
Previous Message Noah Misch 2022-09-01 04:25:55 Re: Solaris "sed" versus pre-v13 plpython tests