{"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","derived_content_hash":"1c6cbf8823fb761dc9375056fb0dff237613b7a24a9470961c3423416011d244","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:a113b83ec69ba1849b1659b4648ae6a1e5c349e9530c8153e6f8222e0a7afd76","versions":{"16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"6a990eeac64379ec4c3c1af29b2ab8bd3bacd032faf3cf90734fe5d43a870620","repair":"wiki-repair-20261023"},"signature":"system_user → text","signature_count":1,"slug":"system-user","source_rev":"wiki-repair-20261023:a113b83ec69ba1849b1659b4648ae6a1e5c349e9530c8153e6f8222e0a7afd76","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":"wiki-repair-20261023:a113b83ec69ba1849b1659b4648ae6a1e5c349e9530c8153e6f8222e0a7afd76","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":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 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。","doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","version":"18.7"},{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"f9684137c0b9fb17a691c4d905529d114472a507a007c15058f2703962b611d2","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"info","group_label":"系统信息函数和操作符","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":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 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。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-info.html","sha256":"7c33185e79430cfbda432dc4db277115c7ac846afccadfcf904ceb1bf2aa1ba5"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"system-user","SourceDatabase":"center","Version":"18","Locale":"en","Title":"system_user","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. It is represented as auth_method:identity or NULL if the user has not been authenticated (for example if Trust authentication has been used).","BodyHTML":"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\u003eauth_method:identity\u003c/code\u003e or \u003ccode\u003eNULL\u003c/code\u003e if the user has not been authenticated (for example if \u003ca href=\"/docs/18/auth-trust.html\" rel=\"nofollow\"\u003eTrust authentication\u003c/a\u003e has been used).","SourceRevision":"wiki-repair-20261023:a113b83ec69ba1849b1659b4648ae6a1e5c349e9530c8153e6f8222e0a7afd76","ContentHash":"97319d474ed6a1e32116fcc1455edd3ca0c4d9901d9d304267b58bf1a7004e05","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).","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":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 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。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"返回用户在被分配数据库角色之前，于认证周期中提供的认证方法和身份（如果有）。结果表示为 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。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
