Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quyPv-002Ojy-Vu for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 17:08:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1quyPt-00CQxy-Lh for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 17:08:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quyPt-00CQwx-Az for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 17:08:38 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quyPr-001wCb-KX for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 17:08:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39NH8YcF398802; Mon, 23 Oct 2023 13:08:34 -0400 From: Tom Lane To: Albrecht =?iso-8859-1?b?RHJl3w==?= cc: pgsql-general@lists.postgresql.org Subject: Re: Passing enum Parameters to User-defined C-Language Functions In-reply-to: References: Comments: In-reply-to Albrecht =?iso-8859-1?b?RHJl3w==?= message dated "Mon, 23 Oct 2023 16:54:28 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <398800.1698080914.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Oct 2023 13:08:34 -0400 Message-ID: <398801.1698080914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Albrecht =3D?iso-8859-1?b?RHJl3w=3D=3D?=3D writ= es: > - How would a =E2=80=9Cmood=E2=80=9D parameter be encoded when it is pas= sed 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