Re: Passing enum Parameters to User-defined C-Language Functions - Mailing list pgsql-general

From Tom Lane
Subject Re: Passing enum Parameters to User-defined C-Language Functions
Date
Msg-id 398801.1698080914@sss.pgh.pa.us
Whole thread Raw
In response to Passing enum Parameters to User-defined C-Language Functions  (Albrecht Dreß <albrecht.dress@posteo.de>)
List pgsql-general
Albrecht =?iso-8859-1?b?RHJl3w==?= <albrecht.dress@posteo.de> writes:
> - How would a “mood” parameter be encoded when it is passed to the function?

It's an OID, which you'd have to look up in the pg_enum catalog if
you want to know the string representation.

            regards, tom lane



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: PostgreSQL inheritance vs https://wiki.postgresql.org/wiki/Don%27t_Do_This
Next
From: Achilleas Mantzios
Date:
Subject: Re: PostgreSQL inheritance vs https://wiki.postgresql.org/wiki/Don%27t_Do_This