{"Entry":{"collection":"func","key":"pg-basetype","name":"pg_basetype","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":"e83aa824420d7dd6e6364fb9eb102a274f392c5fcd513facaef2b48317ab9564","derived_content_hash":"0609e35a69be310430663cd377fb4f5400f4e0d99e86f67b48dcf2e2a91efb4e","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:98cb440691e5feab05a752256804b8430a955b84ca6db61d8e5452ace6dcf985","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.119902+08:00","last_version":"20","name":"pg_basetype","name_key":"pg_basetype","position":28035,"present_in":["17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"e2c4fccdf9d37197e059fe18adad78889f73e993c9cc9c3422745a9e3728fb69","repair":"wiki-repair-20261023"},"signature":"pg_basetype ( regtype ) → regtype","signature_count":1,"slug":"pg-basetype","source_rev":"wiki-repair-20261023:98cb440691e5feab05a752256804b8430a955b84ca6db61d8e5452ace6dcf985","summary":"Returns the OID of the base type of a domain identified by its type OID.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-basetype","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-basetype","SourceRevision":"wiki-repair-20261023:98cb440691e5feab05a752256804b8430a955b84ca6db61d8e5452ace6dcf985","Facts":{"description":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_html":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_zh":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","description_zh_html":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","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":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_html":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_zh":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","description_zh_html":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","examples":[{"expr":"pg_basetype('mytext'::regtype)","result":"text"}],"html":"\u003ccode class=\"function\"\u003epg_basetype\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"pg_basetype ( regtype ) → 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":"pg-basetype","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_basetype","Summary":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","BodyHTML":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there\u0026#39;s a chain of domain dependencies, it will recurse until finding the base type.","SourceRevision":"wiki-repair-20261023:98cb440691e5feab05a752256804b8430a955b84ca6db61d8e5452ace6dcf985","ContentHash":"8734ad8b1f82313ac96d5a4d9c3fa9ebb56d56c81bb0216fe8179f7972c7bb74","Payload":{"description":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_html":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","signatures":[{"description":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_html":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_zh":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","description_zh_html":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","examples":[{"expr":"pg_basetype('mytext'::regtype)","result":"text"}],"html":"\u003ccode class=\"function\"\u003epg_basetype\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"pg_basetype ( regtype ) → regtype","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"42e087d8ce82c10efad3b0dfcb1bac1d3d15c8e92c0c3ee04c869bb0cd0a2f82","Text":"pg_basetype ( regtype ) → regtype","Returns":"regtype","Payload":{"description":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_html":"Returns the OID of the base type of a domain identified by its type OID. If the argument is the OID of a non-domain type, returns the argument as-is. Returns NULL if the argument is not a valid type OID. If there's a chain of domain dependencies, it will recurse until finding the base type.","description_zh":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","description_zh_html":"返回由类型 OID 标识的域的基础类型 OID。如果参数是非域类型的 OID，则原样返回该参数。如果参数不是有效的类型 OID，则返回 NULL。如果存在域依赖链，则递归查找，直到找到基础类型。","examples":[{"expr":"pg_basetype('mytext'::regtype)","result":"text"}],"html":"\u003ccode class=\"function\"\u003epg_basetype\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregtype\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregtype\u003c/code\u003e","returns":"regtype","text":"pg_basetype ( regtype ) → regtype","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
