{"Entry":{"collection":"func","key":"to-regdatabase","name":"to_regdatabase","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"18","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"19"}],"content_hash":"3255645d98f1b4f339cfb943f509ef4d5d5e9e5beb6cebc530c84ed73ac6f257","first_version":"19","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.353241+08:00","last_version":"20","name":"to_regdatabase","name_key":"to_regdatabase","position":28125,"present_in":["19","20"],"signature":"to_regdatabase ( text ) → regdatabase","signature_count":1,"slug":"to-regdatabase","source_rev":"b7bd9cda","summary":"Translates a textual database name to its OID.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-regdatabase","SourceDatabase":"center","Version":"20","SourceTable":"func","SourceKey":"to-regdatabase","SourceRevision":"b7bd9cda","Facts":{"description":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type regdatabase (see Section 8.19); however, this function will return NULL rather than throwing an error if the name is not found.","description_html":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregdatabase\u003c/code\u003e (see \u003ca href=\"/docs/devel/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e); however, this function will return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e rather than throwing an error if the name is not found.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"devel"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type regdatabase (see Section 8.19); however, this function will return NULL rather than throwing an error if the name is not found.","description_html":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregdatabase\u003c/code\u003e (see \u003ca href=\"/docs/devel/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e); however, this function will return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e rather than throwing an error if the name is not found.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eto_regdatabase\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregdatabase\u003c/code\u003e","returns":"regdatabase","text":"to_regdatabase ( text ) → regdatabase","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"devel"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-regdatabase","SourceDatabase":"pgweb","Version":"20","Locale":"zh-Hans","Title":"to_regdatabase","Summary":"将文本数据库名转换为它的OID。通过将字符串类型转换为regdatabase可以得到类似的结果（参见第 8.19 节）；但是，如果没有找到名称，这个函数将返回NULL而不会抛出错误。","BodyHTML":"将文本数据库名转换为它的OID。通过将字符串类型转换为\u003ccode\u003eregdatabase\u003c/code\u003e可以得到类似的结果（参见\u003ca href=\"/docs/devel/datatype-oid.html\" rel=\"nofollow\"\u003e第 8.19 节\u003c/a\u003e）；但是，如果没有找到名称，这个函数将返回\u003ccode\u003eNULL\u003c/code\u003e而不会抛出错误。\u003cpre\u003eto_regdatabase ( text ) → regdatabase\u003c/pre\u003e将文本数据库名转换为它的OID。通过将字符串类型转换为\u003ccode\u003eregdatabase\u003c/code\u003e可以得到类似的结果（参见\u003ca href=\"/docs/devel/datatype-oid.html\" rel=\"nofollow\"\u003e第 8.19 节\u003c/a\u003e）；但是，如果没有找到名称，这个函数将返回\u003ccode\u003eNULL\u003c/code\u003e而不会抛出错误。","SourceRevision":"ca936764","ContentHash":"1ffc34ade3bc1969e338c241e021ab46f1bbc2fa8c61aa98a28e3df2b0b2de22","Payload":{"description_zh":"将文本数据库名转换为它的OID。通过将字符串类型转换为regdatabase可以得到类似的结果（参见第 8.19 节）；但是，如果没有找到名称，这个函数将返回NULL而不会抛出错误。","description_zh_html":"将文本数据库名转换为它的OID。通过将字符串类型转换为\u003ccode class=\"type\"\u003eregdatabase\u003c/code\u003e可以得到类似的结果（参见\u003ca href=\"/docs/devel/datatype-oid.html\" title=\"8.19. 对象标识符类型\"\u003e第 8.19 节\u003c/a\u003e）；但是，如果没有找到名称，这个函数将返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e而不会抛出错误。","signatures":[{"description_zh":"将文本数据库名转换为它的OID。通过将字符串类型转换为regdatabase可以得到类似的结果（参见第 8.19 节）；但是，如果没有找到名称，这个函数将返回NULL而不会抛出错误。","description_zh_html":"将文本数据库名转换为它的OID。通过将字符串类型转换为\u003ccode class=\"type\"\u003eregdatabase\u003c/code\u003e可以得到类似的结果（参见\u003ca href=\"/docs/devel/datatype-oid.html\" title=\"8.19. 对象标识符类型\"\u003e第 8.19 节\u003c/a\u003e）；但是，如果没有找到名称，这个函数将返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e而不会抛出错误。","returns":"regdatabase","text":"to_regdatabase ( text ) → regdatabase","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"20","Ordinal":0,"Hash":"1d2ab5d4cde6bbb6cbcbaae24dc28c5d7deebe2aaafb7c6dc7020ead29e92ef0","Text":"to_regdatabase ( text ) → regdatabase","Returns":"regdatabase","Payload":{"description":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type regdatabase (see Section 8.19); however, this function will return NULL rather than throwing an error if the name is not found.","description_html":"Translates a textual database name to its OID. A similar result is obtained by casting the string to type \u003ccode class=\"type\"\u003eregdatabase\u003c/code\u003e (see \u003ca href=\"/docs/devel/datatype-oid.html\" title=\"8.19. Object Identifier Types\"\u003eSection 8.19\u003c/a\u003e); however, this function will return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e rather than throwing an error if the name is not found.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eto_regdatabase\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregdatabase\u003c/code\u003e","returns":"regdatabase","text":"to_regdatabase ( text ) → regdatabase","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
