{"Entry":{"collection":"func","key":"to-regtypemod","name":"to_regtypemod","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"17"}],"content_hash":"e7711d93cd39f62a96d713ba313ac0aabb009fd665765f1b857968637d01e2f3","derived_content_hash":"6e48f49f11ecf033c2a659fc81c1a65b0d61a1af291bf5a39497866caa322ffd","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:9d409704cdf286749e45731c0d9ae316c1ed26d9f1266cd1d24a7cfe03968529","versions":{"17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"17","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.374388+08:00","last_version":"20","name":"to_regtypemod","name_key":"to_regtypemod","position":28133,"present_in":["17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"a214b98e7ee93599403c5ac34b107e775ac5a6edb0d4a899ac00fd1d608f4585","repair":"wiki-repair-20261023"},"signature":"to_regtypemod ( text ) → integer","signature_count":1,"slug":"to-regtypemod","source_rev":"wiki-repair-20261023:9d409704cdf286749e45731c0d9ae316c1ed26d9f1266cd1d24a7cfe03968529","summary":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-regtypemod","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-regtypemod","SourceRevision":"wiki-repair-20261023:9d409704cdf286749e45731c0d9ae316c1ed26d9f1266cd1d24a7cfe03968529","Facts":{"description":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is -1 if no type modifier is present.","description_html":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if no type modifier is present.","description_zh":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 NULL。如果没有类型修饰符，则结果为 -1。","description_zh_html":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。如果没有类型修饰符，则结果为 \u003ccode class=\"literal\"\u003e-1\u003c/code\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 its type modifier, if any. 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. The result is -1 if no type modifier is present.","description_html":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if no type modifier is present.","description_zh":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 NULL。如果没有类型修饰符，则结果为 -1。","description_zh_html":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。如果没有类型修饰符，则结果为 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","examples":[{"expr":"format_type(to_regtype('varchar(32)'), to_regtypemod('varchar(32)'))","result":"character varying(32)"}],"html":"\u003ccode class=\"function\"\u003eto_regtypemod\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"to_regtypemod ( text ) → integer","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-regtypemod","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_regtypemod","Summary":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is -1 if no type modifier is present.","BodyHTML":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode\u003e-1\u003c/code\u003e if no type modifier is present.","SourceRevision":"wiki-repair-20261023:9d409704cdf286749e45731c0d9ae316c1ed26d9f1266cd1d24a7cfe03968529","ContentHash":"035d1593d24c0b0afd0e71ea8d7c064ab45a6f59ea78a750d393c06b2da8563d","Payload":{"description":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is -1 if no type modifier is present.","description_html":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if no type modifier is present.","signatures":[{"description":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is -1 if no type modifier is present.","description_html":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if no type modifier is present.","description_zh":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 NULL。如果没有类型修饰符，则结果为 -1。","description_zh_html":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。如果没有类型修饰符，则结果为 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","examples":[{"expr":"format_type(to_regtype('varchar(32)'), to_regtypemod('varchar(32)'))","result":"character varying(32)"}],"html":"\u003ccode class=\"function\"\u003eto_regtypemod\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"to_regtypemod ( text ) → integer","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"585d33558bd8c5b40002063c904913f92d863f24968e36b9ef627a2ed434ac7a","Text":"to_regtypemod ( text ) → integer","Returns":"integer","Payload":{"description":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is -1 if no type modifier is present.","description_html":"Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. 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. The result is \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if no type modifier is present.","description_zh":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 NULL。如果没有类型修饰符，则结果为 -1。","description_zh_html":"解析文本字符串，从中提取可能的类型名称，并转换其类型修饰符（如果有）。字符串中的语法错误会引发错误；但如果字符串是语法有效的类型名称，只是在系统目录中找不到，则结果为 \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。如果没有类型修饰符，则结果为 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","examples":[{"expr":"format_type(to_regtype('varchar(32)'), to_regtypemod('varchar(32)'))","result":"character varying(32)"}],"html":"\u003ccode class=\"function\"\u003eto_regtypemod\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"to_regtypemod ( text ) → integer","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
