GBase 8c 事务ID和快照(三)
slice(hstore, text[])
描述: 提取hstore的子集。
返回值: hstore
示例:
gbase=# select slice('a=>1,b=>2,c=>3'::hstore, ARRAY['b','c','x']);
slice
--------------------
"b"=>"2", "c"=>"3"
(1 row)
slice_array(hstore, text[])
描述:提取hstore的值的集合。
返回值:值数组
示例:
gbase=# select slice_array('a=>1,b=>2,c=>3'::hstore, ARRAY['b','c','x']);
slice_array
-------------
{2,3,NULL}
(1 row)
skeys(hstore)
描述:返回hstore的所有键构成的集合。
返回值:键的集合。
示例:
gbase=# select skeys('a=>1,b=>2');
skeys
-------
a
b
(2 rows)
pg_control_system()
描述:返回系统控制文件状态。
返回类型:SETOF record
pg_control_checkpoint()
描述:返回系统检查点状态。
返回类型:SETOF record
pv_builtin_functions
描述:查看所有内置系统函数信息。
参数:nan
返回值类型:proname name, pronamespace oid, proowner oid, prolang oid, procost real, prorows real, provariadic oid, protransform regproc, proisagg boolean, proiswindow boolean, prosecdef boolean, proleakproof boolean, proisstrict boolean, proretset boolean, provolatile “char”, pronargs smallint, pronargdefaults smallint, prorettype oid, proargtypes oidvector, proallargtypes integer[], proargmodes “char”[], proargnames text[], proargdefaults pg_node_tree, prosrc text, probin text, proconfig text[], proacl aclitem[], prodefaultargpos int2vector, fencedmode boolean, proshippable boolean, propackage boolean, oid oid
pv_thread_memory_detail
描述:返回各线程的内存信息。
参数:nan
返回值类型:threadid text, tid bigint, thrdtype text, contextname text, level smallint, parent text, totalsize bigint, freesize bigint, usedsize bigint
pg_relation_compression_ratio
描述:查询表压缩率,默认返回1.0。
参数:text
返回值类型:real
pg_relation_with_compression
描述:查询表是否压缩。
参数:text
返回值类型:boolean
pg_stat_file_recursive
描述:列出路径下所有文件。
参数:location text
评论
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526