当前位置:网站首页>GBase 8c 配置设置函数
GBase 8c 配置设置函数
2022-07-27 23:56:00 【大壮十二】
配置设置函数是可以用于查询以及修改运行时配置参数的函数。
current_setting(setting_name)
描述:当前的设置值。
返回值类型:text
备注:current_setting用于以查询形式获取setting_name的当前值。和SQL语句SHOW是等效的。比如:
gbase=# SELECT current_setting('datestyle');
current_setting
-----------------
ISO, MDY
(1 row)
set_working_grand_version_num_manually(tmp_version)
描述:通过切换授权版本号来更新和升级数据库的新特性。
返回值类型:void
shell_in(type)
描述: 为shell类型输入路由(那些尚未填充的类型)。
返回值类型:void
shell_out(type)
描述:为shell 类型输出路由(那些尚未填充的类型)。
返回值类型:void
set_config(setting_name, new_value, is_local)
描述:设置参数并返回新值。
返回值类型:text
备注:set_config将参数setting_name设置为new_value。如果is_local为true,则new_value将只应用于当前事务。如果希望new_value应用于当前会话,可以使用false,和SQL语句SET是等效的。例如:
gbase=# SELECT set_config('log_statement_stats', 'off', false);
set_config
------------
off
(1 row)
边栏推荐
- docker 本地搭建mysql主从
- "Do you" want to be a test / development programmer? We strive to sprout
- 实现OCR语言识别Demo(二)- 图片及识别内容的展现和交互
- Sort out SQL performance optimization and collect classics!
- 我的富二代朋友
- 软件测试面试题:如何发现数据库的相关问题?
- 2.2综合应用题-顺序表
- Lambda表达式和Stream流
- Real time synchronization and conversion of massive data based on Flink CDC
- Modify the request path using the streaming API of gateway
猜你喜欢

LeetCode 2347. 最好的扑克手牌

普通设备能不能接入TSN时间敏感网络?

内容bypass分享

Graph theory analysis of white matter brain function network: neural markers for classification and prediction of depression

Leetcode 2347. the best poker hand

BGP联邦实验

Linux系统彻底删除Mysql

Flink 在 讯飞 AI 营销业务的实时数据分析实践

N32L43x Flash读\写\擦除操作总结

Let's move forward together, the 10th anniversary of Google play!
随机推荐
Let's move forward together, the 10th anniversary of Google play!
How to calculate the profit and loss of spot Silver
Understand shader
HCIP第十二天笔记
腾讯云HiFlow场景连接器
Hcip day 15
Flink 在 讯飞 AI 营销业务的实时数据分析实践
qt 设置图标
MATLAB 44种动漫渐变色绘图程序
一些事情的思考
VLAN experiment
Tencent cloud hiflow scene connector
2.2 comprehensive application questions - sequence table
Qlib tutorial - based on source code (II) local data saving and loading
还在用WIFI你就OUT了:LI-FI更牛!!!
IIC read / write eefprom
领域驱动设计——术语篇
Leetcode: 515. Find the maximum value in each tree row
软件测试面试题:性能测试指标有哪些?
"Do you" want to be a test / development programmer? We strive to sprout