当前位置:网站首页>Gbase 8C session information function (II)
Gbase 8C session information function (II)
2022-07-24 00:17:00 【Dazhuang twelve】
current_schema[()]
describe : Name of current mode .
return type :name
Example :
gbase=# SELECT current_schema();
current_schema
----------------
public
(1 row)remarks :current_schema Returns the first valid pattern name in the search path .( If the search path is empty, return NULL, No valid schema name is returned NULL). If the target schema is not declared when creating tables or other named objects , The schema of these objects will be used .
current_schemas(Boolean)
describe : Search the schema name in the path .
return type :name[]
Example :
gbase=# SELECT current_schemas(true);
current_schemas
---------------------
{pg_catalog,public}
(1 row)remarks :
current_schemas(Boolean) Returns an array of all schema names in the search path . Boolean options determine things like pg_catalog Whether the implied system mode is included in the returned search path .
The search path can be changed through runtime settings . The order is :
SET search_path TO schema [, schema, ...]
current_user
describe : The user name in the current execution environment .
return type :name
Example :
gbase=# SELECT current_user;
current_user
--------------
gbase
(1 row)remarks :current_user Is the user ID used for permission check , Usually indicates a session user , But it can go through SET ROLE Order change . In the process of function execution , if SECURITY DEFINER Property change , Its value will also change .
definer_current_user
describe : The user name in the current execution environment .
return type :name
Example :
gbase=# SELECT definer_current_user();
definer_current_user
----------------------
gbase
(1 row)边栏推荐
- ESP8266————AT指令+网络透传
- ansible命令自动补全
- Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable
- Redis数据结构
- 今天在家里补觉
- GBase 8c 会话信息函数(二)
- Multi table query_ External connection
- Redis主从同步机制
- Jenkins uses sonarqube to build pipeline code review project
- [Android kotlin] property, getter and setter
猜你喜欢

Jenkins 使用sonarqube构建流水线代码审查项目

Esp8266 - at command + network transparent transmission

Redis 集群hash分片算法(槽位定位算法)

Inftnews | protect the "Snow Mountain Spirit", and the 42verse "digital ecological protection" public welfare project is about to start

太空射击 第07课: 添加图形

【译】Go RPC 入门:Hello World

The differences between text and image drawing, data storage, localstorage, sessionstorage, and cookies

Nacos

Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?

Redis主从同步机制
随机推荐
mongodb的多数据源配置
GBase 8c 会话信息函数(三)
pthread 的 joinable 和 detached
The universal esp32c3 configures partition tables based on the Arduino ide framework
Nacos
今天在家里补觉
[wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization
docker 拉取redis镜像 并运行
Structured streaming programming model (input table, result table, output mode...)
IT基础英语
多表查询之_外连接
Input and output of ACM mode
STL case - judges' scoring
投资的物质回报
[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area
Redis cluster construction (cluster cluster mode, fragment cluster)
[translation] Introduction to go RPC: Hello World
Single target tracking - [correlation filtering] mosse:visual object tracking using adaptive correlation filters
Pytest interface automated testing framework | common running parameters of pytest