{"Entry":{"collection":"func","key":"system-user","name":"system_user","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"16"}],"content_hash":"b22ca520b8a91399027c855c201d395cc64d9df59b78e5e8e5ea7b322380ccfc","first_version":"16","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.346563+08:00","last_version":"20","name":"system_user","name_key":"system_user","position":28122,"present_in":["16","17","18","19","20"],"signature":"system_user → text","signature_count":1,"slug":"system-user","source_rev":"b7bd9cda","summary":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role.","summary_zh":""}},"Definition":{"Collection":"func","Key":"system-user","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"system-user","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as auth_method:identity or NULL if the user has not been authenticated (for example if Trust authentication has been used).","description_html":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as \u003ccode class=\"literal\"\u003eauth_method:identity\u003c/code\u003e or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the user has not been authenticated (for example if \u003ca href=\"/docs/18/auth-trust.html\" title=\"20.4. Trust Authentication\"\u003eTrust authentication\u003c/a\u003e has been used).","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as auth_method:identity or NULL if the user has not been authenticated (for example if Trust authentication has been used).","description_html":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as \u003ccode class=\"literal\"\u003eauth_method:identity\u003c/code\u003e or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the user has not been authenticated (for example if \u003ca href=\"/docs/18/auth-trust.html\" title=\"20.4. Trust Authentication\"\u003eTrust authentication\u003c/a\u003e has been used).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003esystem_user\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"system_user → text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"system-user","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"system_user","Summary":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 auth_method:identity；如果用户未被认证（例如使用了Trust 认证），则返回 NULL。","BodyHTML":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 \u003ccode\u003eauth_method:identity\u003c/code\u003e；如果用户未被认证（例如使用了\u003ca href=\"/docs/18/auth-trust.html\" rel=\"nofollow\"\u003eTrust 认证\u003c/a\u003e），则返回 \u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003esystem_user → text\u003c/pre\u003e返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 \u003ccode\u003eauth_method:identity\u003c/code\u003e；如果用户未被认证（例如使用了\u003ca href=\"/docs/18/auth-trust.html\" rel=\"nofollow\"\u003eTrust 认证\u003c/a\u003e），则返回 \u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"8d6c364e304df0c963c4522b204c3c6f7c354cb902b403122088ea7284bf828d","Payload":{"description_zh":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 auth_method:identity；如果用户未被认证（例如使用了Trust 认证），则返回 NULL。","description_zh_html":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 \u003ccode class=\"literal\"\u003eauth_method:identity\u003c/code\u003e；如果用户未被认证（例如使用了\u003ca href=\"/docs/18/auth-trust.html\" title=\"20.4. 信任认证\"\u003eTrust 认证\u003c/a\u003e），则返回 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","signatures":[{"description_zh":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 auth_method:identity；如果用户未被认证（例如使用了Trust 认证），则返回 NULL。","description_zh_html":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 \u003ccode class=\"literal\"\u003eauth_method:identity\u003c/code\u003e；如果用户未被认证（例如使用了\u003ca href=\"/docs/18/auth-trust.html\" title=\"20.4. 信任认证\"\u003eTrust 认证\u003c/a\u003e），则返回 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","returns":"text","text":"system_user → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"799c4235f5af47748cef86a6bf628887e07b65c62288e072b98638202897bb3e","Text":"system_user → text","Returns":"text","Payload":{"description":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as auth_method:identity or NULL if the user has not been authenticated (for example if Trust authentication has been used).","description_html":"Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as \u003ccode class=\"literal\"\u003eauth_method:identity\u003c/code\u003e or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the user has not been authenticated (for example if \u003ca href=\"/docs/18/auth-trust.html\" title=\"20.4. Trust Authentication\"\u003eTrust authentication\u003c/a\u003e has been used).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003esystem_user\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"system_user → text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
