greenplumn pg_resgroup 源码
greenplumn pg_resgroup 代码
文件路径:/src/include/catalog/pg_resgroup.h
/*-------------------------------------------------------------------------
*
* pg_resgroup.h
* definition of the system "resource group" relation (pg_resgroup).
*
*
*
* NOTES
* the genbki.sh script reads this file and generates .bki
* information from the DATA() statements.
*
*-------------------------------------------------------------------------
*/
#ifndef PG_RESGROUP_H
#define PG_RESGROUP_H
#include "catalog/genbki.h"
#include "catalog/pg_resgroup_d.h"
/* ----------------
* pg_resgroup definition. cpp turns this into
* typedef struct FormData_pg_resgroup
* ----------------
*/
CATALOG(pg_resgroup,6436,ResGroupRelationId) BKI_SHARED_RELATION
{
Oid oid; /* oid */
NameData rsgname; /* name of resource group */
Oid parent; /* parent resource group */
} FormData_pg_resgroup;
/* no foreign keys */
/* ----------------
* Form_pg_resgroup corresponds to a pointer to a tuple with
* the format of pg_resgroup relation.
* ----------------
*/
typedef FormData_pg_resgroup *Form_pg_resgroup;
/* ----------------
* pg_resgroupcapability definition. cpp turns this into
* typedef struct FormData_pg_resgroupcapability
* ----------------
*/
typedef enum ResGroupLimitType
{
RESGROUP_LIMIT_TYPE_UNKNOWN = 0,
RESGROUP_LIMIT_TYPE_CONCURRENCY,
RESGROUP_LIMIT_TYPE_CPU,
RESGROUP_LIMIT_TYPE_MEMORY,
RESGROUP_LIMIT_TYPE_MEMORY_SHARED_QUOTA,
RESGROUP_LIMIT_TYPE_MEMORY_SPILL_RATIO,
RESGROUP_LIMIT_TYPE_MEMORY_AUDITOR,
RESGROUP_LIMIT_TYPE_CPUSET,
RESGROUP_LIMIT_TYPE_COUNT,
} ResGroupLimitType;
#endif /* PG_RESGROUP_H */
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦