{"Entry":{"collection":"func","key":"enum-first","name":"enum_first","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"8083c51d61f4c734610ab77e302fd9f069e9bd10ba1de3ff6b39beff2bc68a77","first_version":"8.3","group":"enum","group_label":"Enum Support Functions","groups":["enum"],"imported_at":"2026-09-27T17:57:28.587147+08:00","last_version":"20","name":"enum_first","name_key":"enum_first","position":9000,"present_in":["8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"enum_first ( anyenum ) → anyenum","signature_count":1,"slug":"enum-first","source_rev":"b7bd9cda","summary":"Returns the first value of the input enum type.","summary_zh":""}},"Definition":{"Collection":"func","Key":"enum-first","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"enum-first","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the first value of the input enum type.","description_html":"Returns the first value of the input enum type.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ENUM-TABLE","file":"functions-enum.html","slug":"18"},"group":"enum","group_label":"Enum Support Functions","lang":"en","layout":"table-new","pages":["functions-enum.html"],"prose_only":false,"signatures":[{"description":"Returns the first value of the input enum type.","description_html":"Returns the first value of the input enum type.","description_zh":"","description_zh_html":"","examples":[{"expr":"enum_first(null::rainbow)","result":"red"}],"html":"\u003ccode class=\"function\"\u003eenum_first\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyenum\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyenum\u003c/code\u003e","returns":"anyenum","text":"enum_first ( anyenum ) → anyenum","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ENUM-TABLE","file":"functions-enum.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"enum-first","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"enum_first","Summary":"返回输入枚举类型的第一个值。","BodyHTML":"返回输入枚举类型的第一个值。\u003cpre\u003eenum_first ( anyenum ) → anyenum\u003c/pre\u003e返回输入枚举类型的第一个值。","SourceRevision":"ca936764","ContentHash":"266555176b88b731753559d9b3c062d1130ecd7e51d6a5baec618c790e3f4e94","Payload":{"description_zh":"返回输入枚举类型的第一个值。","description_zh_html":"返回输入枚举类型的第一个值。","signatures":[{"description_zh":"返回输入枚举类型的第一个值。","description_zh_html":"返回输入枚举类型的第一个值。","returns":"anyenum","text":"enum_first ( anyenum ) → anyenum","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"ee86d9daec12a59573717f044610c67fad1c606bff7b110e9ecfba8c914c9cef","Text":"enum_first ( anyenum ) → anyenum","Returns":"anyenum","Payload":{"description":"Returns the first value of the input enum type.","description_html":"Returns the first value of the input enum type.","description_zh":"","description_zh_html":"","examples":[{"expr":"enum_first(null::rainbow)","result":"red"}],"html":"\u003ccode class=\"function\"\u003eenum_first\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyenum\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyenum\u003c/code\u003e","returns":"anyenum","text":"enum_first ( anyenum ) → anyenum","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
