{"Entry":{"collection":"func","key":"current-role","name":"current_role","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.2"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"88beb4177e727d2d0612be5da73e8051285a790f0b1939f99d814c1cd0f54717","first_version":"9.2","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.043317+08:00","last_version":"20","name":"current_role","name_key":"current_role","position":28006,"present_in":["9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"current_role → name","signature_count":1,"slug":"current-role","source_rev":"b7bd9cda","summary":"This is equivalent to current_user.","summary_zh":""}},"Definition":{"Collection":"func","Key":"current-role","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"current-role","SourceRevision":"b7bd9cda","Facts":{"description":"This is equivalent to current_user.","description_html":"This is equivalent to \u003ccode class=\"function\"\u003ecurrent_user\u003c/code\u003e.","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":"This is equivalent to current_user.","description_html":"This is equivalent to \u003ccode class=\"function\"\u003ecurrent_user\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_role\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003ename\u003c/code\u003e","returns":"name","text":"current_role → name","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"current-role","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"current_role","Summary":"这个等同于 current_user。","BodyHTML":"这个等同于 \u003ccode\u003ecurrent_user\u003c/code\u003e。\u003cpre\u003ecurrent_role → name\u003c/pre\u003e这个等同于 \u003ccode\u003ecurrent_user\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"43dfbd4118c34067d13ea50cd164f5aaf82582f5c5483cd6965296fdae7b6214","Payload":{"description_zh":"这个等同于 current_user。","description_zh_html":"这个等同于 \u003ccode class=\"function\"\u003ecurrent_user\u003c/code\u003e。","signatures":[{"description_zh":"这个等同于 current_user。","description_zh_html":"这个等同于 \u003ccode class=\"function\"\u003ecurrent_user\u003c/code\u003e。","returns":"name","text":"current_role → name","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"c8bcbe3fb190fd0dc726bbf262a78f3c9dd660e650e983ad800d9ad828733bf3","Text":"current_role → name","Returns":"name","Payload":{"description":"This is equivalent to current_user.","description_html":"This is equivalent to \u003ccode class=\"function\"\u003ecurrent_user\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_role\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003ename\u003c/code\u003e","returns":"name","text":"current_role → name","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
