{"Entry":{"collection":"func","key":"has-type-privilege","name":"has_type_privilege","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":"eb0408b23f55956f2ea7bdedaa106c84d00c25f8d19fbabe0c5878a408861570","first_version":"9.2","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.092116+08:00","last_version":"20","name":"has_type_privilege","name_key":"has_type_privilege","position":28024,"present_in":["9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","signature_count":1,"slug":"has-type-privilege","source_rev":"b7bd9cda","summary":"Does user have privilege for data type? The only allowable privilege type is USAGE.","summary_zh":""}},"Definition":{"Collection":"func","Key":"has-type-privilege","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"has-type-privilege","SourceRevision":"b7bd9cda","Facts":{"description":"Does user have privilege for data type? The only allowable privilege type is USAGE. When specifying a type by name rather than by OID, the allowed input is the same as for the regtype data type (see Section 8.19).","description_html":"Does user have privilege for data type? The only allowable privilege type is \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e. When specifying a type by name rather than by OID, the allowed input is the same as for the \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e data type (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e).","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-ACCESS-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":"Does user have privilege for data type? The only allowable privilege type is USAGE. When specifying a type by name rather than by OID, the allowed input is the same as for the regtype data type (see Section 8.19).","description_html":"Does user have privilege for data type? The only allowable privilege type is \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e. When specifying a type by name rather than by OID, the allowed input is the same as for the \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e data type (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ehas_type_privilege\u003c/code\u003e ( [ \u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003euser\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e or \u003ccode class=\"type\"\u003eoid\u003c/code\u003e,\u003c/span\u003e ] \u003cem class=\"parameter\"\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e or \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eprivilege\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-ACCESS-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"has-type-privilege","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"has_type_privilege","Summary":"用户对数据类型有权限吗？唯一允许的权限类型是 USAGE。当通过名称而不是OID指定类型时，允许的输入与regtype数据类型相同（参见第 8.19 节）。","BodyHTML":"用户对数据类型有权限吗？唯一允许的权限类型是 \u003ccode\u003eUSAGE\u003c/code\u003e。当通过名称而不是OID指定类型时，允许的输入与\u003ccode\u003eregtype\u003c/code\u003e数据类型相同（参见\u003ca href=\"/docs/18/datatype-oid.html\" rel=\"nofollow\"\u003e第 8.19 节\u003c/a\u003e）。\u003cpre\u003ehas_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean\u003c/pre\u003e用户对数据类型有权限吗？唯一允许的权限类型是 \u003ccode\u003eUSAGE\u003c/code\u003e。当通过名称而不是OID指定类型时，允许的输入与\u003ccode\u003eregtype\u003c/code\u003e数据类型相同（参见\u003ca href=\"/docs/18/datatype-oid.html\" rel=\"nofollow\"\u003e第 8.19 节\u003c/a\u003e）。","SourceRevision":"1b5ca64c","ContentHash":"8c0baa1fd948b3b8937496f56c039cfd722edec82e800a43191201e3b4107a11","Payload":{"description_zh":"用户对数据类型有权限吗？唯一允许的权限类型是 USAGE。当通过名称而不是OID指定类型时，允许的输入与regtype数据类型相同（参见第 8.19 节）。","description_zh_html":"用户对数据类型有权限吗？唯一允许的权限类型是 \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e。当通过名称而不是OID指定类型时，允许的输入与\u003ccode class=\"type\"\u003eregtype\u003c/code\u003e数据类型相同（参见\u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. 对象标识符类型\"\u003e第 8.19 节\u003c/a\u003e）。","signatures":[{"description_zh":"用户对数据类型有权限吗？唯一允许的权限类型是 USAGE。当通过名称而不是OID指定类型时，允许的输入与regtype数据类型相同（参见第 8.19 节）。","description_zh_html":"用户对数据类型有权限吗？唯一允许的权限类型是 \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e。当通过名称而不是OID指定类型时，允许的输入与\u003ccode class=\"type\"\u003eregtype\u003c/code\u003e数据类型相同（参见\u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. 对象标识符类型\"\u003e第 8.19 节\u003c/a\u003e）。","returns":"boolean","text":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","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":"2e44beb6582a748ea887eaea619ec84d9577c7deb9abe1147377c5d5bb8607d0","Text":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","Returns":"boolean","Payload":{"description":"Does user have privilege for data type? The only allowable privilege type is USAGE. When specifying a type by name rather than by OID, the allowed input is the same as for the regtype data type (see Section 8.19).","description_html":"Does user have privilege for data type? The only allowable privilege type is \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e. When specifying a type by name rather than by OID, the allowed input is the same as for the \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e data type (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ehas_type_privilege\u003c/code\u003e ( [ \u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003euser\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e or \u003ccode class=\"type\"\u003eoid\u003c/code\u003e,\u003c/span\u003e ] \u003cem class=\"parameter\"\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e or \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eprivilege\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
