暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

openGauss 事务ID和快照函数(5)

MTL 2022-11-08
281
  • pg_stat_file_recursive

    描述:列出路径下所有文件。

    参数:location text

  • pg_shared_memory_detail

    描述:返回所有已产生的共享内存上下文的使用信息,各列描述请参考GS_SHARED_MEMORY_DETAIL  表。   

    参数:nan   

    返回值类型:contextname text, level smallint, parent text, totalsize bigint, freesize bigint, usedsize bigint

 GS_SHARED_MEMORY_DETAIL字段

名称

类型

描述

contextname

text

内存上下文的名称。

level

smallint

内存上下文的级别。

parent

text

上级内存上下文。

totalsize

bigint

共享内存总大小(单位:字节)。

freesize

bigint

共享内存剩余大小(单位:字节)。

usedsize

bigint

共享内存使用大小(单位:字节)。

  • get_gtm_lite_status

    描述:返回GTM上的backupXid和csn号,用来支持问题定位,GTM-FREE模式下不支持使用本系统函数。

  • gs_stat_get_wlm_plan_operator_info

    描述:从内部哈希表中获取算子计划信息。

    参数:oid

    返回值类型:datname text, queryid int8, plan_node_id int4, startup_time int8, total_time int8, actual_rows int8, max_peak_memory int4, query_dop int4, parent_node_id int4, left_child_id int4, right_child_id int4, operation text, orientation text, strategy text, options text, condition text, projection text

  • pg_stat_get_partition_tuples_hot_updated

    描述:返回给定分区id的分区热更新元组数的统计。

    参数:oid

    返回值类型:bigint

  • gs_session_memory_detail_tp

    描述:返回会话的内存使用情况,参考gs_session_memory_detail。

    参数:nan

    返回值类型:sessid text, sesstype text, contextname text, level smallint, parent text, totalsize bigint, freesize bigint, usedsize bigint

  • gs_thread_memory_detail

    描述:返回各线程的内存信息。

    参数:nan

    返回值类型:threadid text, tid bigint, thrdtype text, contextname text, level smallint, parent text, totalsize bigint, freesize bigint, usedsize bigint

  • pg_stat_get_wlm_realtime_operator_info

    描述:从内部哈希表中获取实时执行计划算子信息。

    参数:nan

    返回值类型:queryid bigint, pid bigint, plan_node_id integer, plan_node_name text, start_time timestamp with time zone, duration bigint, status text, query_dop integer, estimated_rows bigint, tuple_processed bigint, min_peak_memory integer, max_peak_memory integer, average_peak_memory integer, memory_skew_percent integer, min_spill_size integer, max_spill_size integer, average_spill_size integer, spill_skew_percent integer, min_cpu_time bigint, max_cpu_time bigint, total_cpu_time bigint, cpu_skew_percent integer, warning text

  • pg_stat_get_wlm_realtime_ec_operator_info

    描述:从内部哈希表中获取EC执行计划算子信息。

    参数:nan

    返回值类型:queryid bigint, plan_node_id integer, plan_node_name text, start_time timestamp with time zone, ec_operator integer, ec_status text, ec_execute_datanode text, ec_dsn text, ec_username text, ec_query text, ec_libodbc_type text, ec_fetch_count bigint

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论