greenplumn metrics_utils 源码

  • 2022-08-18
  • 浏览 (245)

greenplumn metrics_utils 代码

文件路径:/src/include/utils/metrics_utils.h

/*-------------------------------------------------------------------------
 *
 * metrics_utils.h
 *	  Definitions for query info collector enum and functions
 *
 * Portions Copyright (c) 2017-Present VMware, Inc. or its affiliates.
 *
 *
 * IDENTIFICATION
 *	    src/include/utils/metrics_utils.h
 *
 *-------------------------------------------------------------------------
 */

#ifndef METRICS_UTILS_H
#define METRICS_UTILS_H 

/* whether the query is a spi/function inner/top-level query or for extension usage */
#define	TOP_LEVEL_QUERY 	 (0U)
#define	SPI_INNER_QUERY 	 (1U)
#define	FUNCTION_INNER_QUERY 	 (2U)

typedef enum
{	
	METRICS_PLAN_NODE_INITIALIZE = 100,
	METRICS_PLAN_NODE_EXECUTING,
	METRICS_PLAN_NODE_FINISHED,
	
	METRICS_QUERY_SUBMIT = 200,
	METRICS_QUERY_START,
	METRICS_QUERY_DONE,
	METRICS_QUERY_ERROR,
	METRICS_QUERY_CANCELING,
	METRICS_QUERY_CANCELED,

	METRICS_INNER_QUERY_DONE = 300
} QueryMetricsStatus;

typedef void (*query_info_collect_hook_type)(QueryMetricsStatus, void *);
extern PGDLLIMPORT query_info_collect_hook_type query_info_collect_hook;

#endif   /* METRICS_UTILS_H */

相关信息

greenplumn 源码目录

相关文章

greenplumn acl 源码

greenplumn aclchk_internal 源码

greenplumn array 源码

greenplumn arrayaccess 源码

greenplumn ascii 源码

greenplumn attoptcache 源码

greenplumn backend_cancel 源码

greenplumn bitmap_compression 源码

greenplumn bitstream 源码

greenplumn builtins 源码

0  赞