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

时间:2024-05-09 09:29:49

current_schemas(boolean)

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

返回值类型:name[]

示例:

1
2
3
4
5
SELECT current_schemas(true);
   current_schemas
---------------------
 {pg_catalog,public}
(1 row)

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

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