当前位置:网站首页>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)边栏推荐
猜你喜欢

The name in Qiankun subapplication package.json becomes the default path

Docker builds sonarqube, mysql5.7 environment

文本和图片的绘制、数据存储、localStorage、sessionStorage、cookie三者的区别
![[wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)](/img/b5/dd4316b83ef4b80c36b532de658bb2.png)
[wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)

The universal esp32c3 configures partition tables based on the Arduino ide framework

Mysql database foundation

太空射击第08课: 改进的碰撞

vulnhub wpwn: 1

473-82(40、662、31、98、189)
C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
随机推荐
2022牛客多校联赛第二场 题解
GBase 8c 访问权限查询函数(五)
Realize the function of uploading and downloading files and directories similar to RZ and SZ on the native terminal
pytorch中with torch.no_grad(): && model.eval()
C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
IT基础英语
What are blue-green deployment, Canary release and a/b test
GBase 8c 会话信息函数(四)
Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization
Take stock of 10 new layer1 to prepare for the next bull market
Sum of submatrix
GBase 8c 会话信息函数(五)
GBase 8c系统表信息函数(三)
Blog expression Encyclopedia
Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable
GBase 8c 会话信息函数(六)
高数_第2章多元函数微分学__偏导数的几何应用_空间曲线的切线与法平面
深度学习之 9 前馈神经网络2:实现前馈神经网络,模型调优
YOLOv1
作为一个程序员,有什么想对新人说的吗?