数据仓库服务 GaussDB(DWS)-会话信息函数:current_schemas(boolean)

时间:2025-02-12 15:04:42

current_schemas(boolean)

描述:current_schemas(boolean)返回搜索路径中所有模式名字的数组。布尔选项决定像pg_catalog这样隐含包含的系统模式是否包含在返回的搜索路径中。

返回值类型:name[]

示例:

12345
SELECT current_schemas(true);   current_schemas--------------------- {pg_catalog,public}(1 row)

搜索路径可以通过运行时设置更改。命令是:

1
SET search_path TO schema [, schema, ...]
support.huaweicloud.com/sqlreference-910-dws/dws_06_0338.html