{"Entry":{"collection":"func","key":"to-regtype","name":"to_regtype","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"16"},{"descriptions_changed":true,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"17"}],"content_hash":"b411c68e7d99176c98da908f38aa6346950b2f5d27307e720fc65a0c6a4b5b42","derived_content_hash":"40fb1a04695192bba6b634fa6fb3a17968311f84ffe10eb72baa65e9e69dde79","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:cc76949244821bfdf0a3cba74a581176cc3bad37b1a21480b0346e4d6eb9abb9","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.4","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.37083+08:00","last_version":"20","name":"to_regtype","name_key":"to_regtype","position":28132,"present_in":["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":"ff0a0014ddc201418896e03fc96379cce0e698c529c88750929305610f4f4240","repair":"wiki-repair-20261023"},"signature":"to_regtype ( text ) → regtype","signature_count":1,"slug":"to-regtype","source_rev":"wiki-repair-20261023:cc76949244821bfdf0a3cba74a581176cc3bad37b1a21480b0346e4d6eb9abb9","summary":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-regtype","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-regtype","SourceRevision":"wiki-repair-20261023:cc76949244821bfdf0a3cba74a581176cc3bad37b1a21480b0346e4d6eb9abb9","Facts":{"description":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","description_html":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","description_zh":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 NULL。将字符串转换为 regtype 类型也能得到类似的结果（参见第 8.19 节），区别在于类型转换会在找不到名称时报错。","description_zh_html":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。将字符串转换为 \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-CATALOG-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":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","description_html":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","description_zh":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 NULL。将字符串转换为 regtype 类型也能得到类似的结果（参见第 8.19 节），区别在于类型转换会在找不到名称时报错。","description_zh_html":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。将字符串转换为 \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\"\u003eto_regtype\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"to_regtype ( text ) → regtype","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-CATALOG-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-regtype","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_regtype","Summary":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","BodyHTML":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" rel=\"nofollow\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","SourceRevision":"wiki-repair-20261023:cc76949244821bfdf0a3cba74a581176cc3bad37b1a21480b0346e4d6eb9abb9","ContentHash":"e9d1754b4b5746561999ae50d23a78f3289ddbdf42b6927b9c91efece99e99d9","Payload":{"description":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","description_html":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","signatures":[{"description":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","description_html":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","description_zh":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 NULL。将字符串转换为 regtype 类型也能得到类似的结果（参见第 8.19 节），区别在于类型转换会在找不到名称时报错。","description_zh_html":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。将字符串转换为 \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\"\u003eto_regtype\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"to_regtype ( text ) → regtype","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"f4e4f08f74e6b3f3dbd62fafb8a92b833a40fe390173032d85717ec39be28605","Text":"to_regtype ( text ) → regtype","Returns":"regtype","Payload":{"description":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is NULL. A similar result is obtained by casting the string to type regtype (see Section 8.19), except that that will throw error for name not found.","description_html":"Parses a string of text, extracts a potential type name from it, and translates that name into a type OID. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e (see \u003ca href=\"/docs/18/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e), except that that will throw error for name not found.","description_zh":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 NULL。将字符串转换为 regtype 类型也能得到类似的结果（参见第 8.19 节），区别在于类型转换会在找不到名称时报错。","description_zh_html":"解析文本字符串，从中提取可能的类型名，并将该名称转换为类型 OID。字符串中的语法错误会导致报错；但如果字符串是语法有效的类型名，只是在系统目录中找不到该类型，结果就是 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。将字符串转换为 \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\"\u003eto_regtype\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"to_regtype ( text ) → regtype","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
