{"Entry":{"collection":"func","key":"current-catalog","name":"current_catalog","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.6","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"10"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"a9d5806c06f3f05b6a82619d58293d4818fbec06a9ba9a656d4f6aa096f7c532","first_version":"8.4","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.035086+08:00","last_version":"20","name":"current_catalog","name_key":"current_catalog","position":28003,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"current_catalog → name","signature_count":1,"slug":"current-catalog","source_rev":"b7bd9cda","summary":"Returns the name of the current database.","summary_zh":""}},"Definition":{"Collection":"func","Key":"current-catalog","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"current-catalog","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the name of the current database. (Databases are called “catalogs” in the SQL standard, so current_catalog is the standard's spelling.)","description_html":"Returns the name of the current database. (Databases are called \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003ecatalogs\u003c/span\u003e”\u003c/span\u003e in the SQL standard, so \u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e is the standard's spelling.)","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Returns the name of the current database. (Databases are called “catalogs” in the SQL standard, so current_catalog is the standard's spelling.)","description_html":"Returns the name of the current database. (Databases are called \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003ecatalogs\u003c/span\u003e”\u003c/span\u003e in the SQL standard, so \u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e is the standard's spelling.)","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003ename\u003c/code\u003e","returns":"name","text":"current_catalog → name","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"current-catalog","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"current_catalog","Summary":"返回当前数据库的名称。（SQL 标准将数据库称为“目录（catalogs）”，因此current_catalog是标准中的写法。）","BodyHTML":"返回当前数据库的名称。（SQL 标准将数据库称为\u003cspan\u003e“\u003cspan\u003e目录（catalogs）\u003c/span\u003e”\u003c/span\u003e，因此\u003ccode\u003ecurrent_catalog\u003c/code\u003e是标准中的写法。）\u003cpre\u003ecurrent_catalog → name\u003c/pre\u003e返回当前数据库的名称。（SQL 标准将数据库称为\u003cspan\u003e“\u003cspan\u003e目录（catalogs）\u003c/span\u003e”\u003c/span\u003e，因此\u003ccode\u003ecurrent_catalog\u003c/code\u003e是标准中的写法。）","SourceRevision":"ca936764","ContentHash":"0441a940ae4eb0f85e5574529f231e77fcf9845ff247fac562056102e718c0e8","Payload":{"description_zh":"返回当前数据库的名称。（SQL 标准将数据库称为“目录（catalogs）”，因此current_catalog是标准中的写法。）","description_zh_html":"返回当前数据库的名称。（SQL 标准将数据库称为\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e目录（catalogs）\u003c/span\u003e”\u003c/span\u003e，因此\u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e是标准中的写法。）","signatures":[{"description_zh":"返回当前数据库的名称。（SQL 标准将数据库称为“目录（catalogs）”，因此current_catalog是标准中的写法。）","description_zh_html":"返回当前数据库的名称。（SQL 标准将数据库称为\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e目录（catalogs）\u003c/span\u003e”\u003c/span\u003e，因此\u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e是标准中的写法。）","returns":"name","text":"current_catalog → name","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"6c0dc9289c60fcd0c338884622aa54410b93e14a64b7f48d3809129c05eada06","Text":"current_catalog → name","Returns":"name","Payload":{"description":"Returns the name of the current database. (Databases are called “catalogs” in the SQL standard, so current_catalog is the standard's spelling.)","description_html":"Returns the name of the current database. (Databases are called \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003ecatalogs\u003c/span\u003e”\u003c/span\u003e in the SQL standard, so \u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e is the standard's spelling.)","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_catalog\u003c/code\u003e → \u003ccode class=\"returnvalue\"\u003ename\u003c/code\u003e","returns":"name","text":"current_catalog → name","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
