{"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","derived_content_hash":"6f6cbeaabe7e9b2aa279d17be1e6d952d5b614c8f33f84c93cad23cc49e2257d","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:fe3d529d3be31d242ca497c2bf826912c2e3fa9ed7e888daa44897c1a5fba0b2","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"dccb8a84f6c2f9919137e0f17d2f1a6d78c105edbbfbb269faf6985b614cb5d2","repair":"wiki-repair-20261023"},"signature":"has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean","signature_count":1,"slug":"has-type-privilege","source_rev":"wiki-repair-20261023:fe3d529d3be31d242ca497c2bf826912c2e3fa9ed7e888daa44897c1a5fba0b2","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":"wiki-repair-20261023:fe3d529d3be31d242ca497c2bf826912c2e3fa9ed7e888daa44897c1a5fba0b2","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":"用户对数据类型有权限吗？唯一允许的权限类型是 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）。","doc":{"anchor":"FUNCTIONS-INFO-ACCESS-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":"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":"用户对数据类型有权限吗？唯一允许的权限类型是 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）。","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":"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-ACCESS-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"has-type-privilege","SourceDatabase":"center","Version":"18","Locale":"en","Title":"has_type_privilege","Summary":"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).","BodyHTML":"Does user have privilege for data type? The only allowable privilege type is \u003ccode\u003eUSAGE\u003c/code\u003e. When specifying a type by name rather than by OID, the allowed input is the same as for the \u003ccode\u003eregtype\u003c/code\u003e data type (see \u003ca href=\"/docs/18/datatype-oid.html\" rel=\"nofollow\"\u003eSection 8.19\u003c/a\u003e).","SourceRevision":"wiki-repair-20261023:fe3d529d3be31d242ca497c2bf826912c2e3fa9ed7e888daa44897c1a5fba0b2","ContentHash":"0074617cef69461dc7fb74f6c153354cc7cd043aed161fb509581e4eff3417e3","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).","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":"用户对数据类型有权限吗？唯一允许的权限类型是 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）。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"569d3cbd3d2e27651ab8454681e3bbce55324ea9be5a24ba1e22d72394a50f8a","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":"用户对数据类型有权限吗？唯一允许的权限类型是 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）。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
