greenplumn resgroupcmds 源码
greenplumn resgroupcmds 代码
文件路径:/src/include/commands/resgroupcmds.h
/*-------------------------------------------------------------------------
*
* resgroupcmds.h
* Commands for manipulating resource group.
*
* Portions Copyright (c) 2006-2017, Greenplum inc.
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
*
* IDENTIFICATION
* src/include/commands/resgroupcmds.h
*
*-------------------------------------------------------------------------
*/
#ifndef RESGROUPCMDS_H
#define RESGROUPCMDS_H
#include "nodes/parsenodes.h"
#include "storage/lock.h"
#include "utils/resgroup.h"
#include "utils/relcache.h"
typedef enum ResGroupMemAuditorType
{
RESGROUP_MEMORY_AUDITOR_VMTRACKER = 0,
RESGROUP_MEMORY_AUDITOR_CGROUP,
RESGROUP_MEMORY_AUDITOR_COUNT,
} ResGroupMemAuditorType;
extern void CreateResourceGroup(CreateResourceGroupStmt *stmt);
extern void DropResourceGroup(DropResourceGroupStmt *stmt);
extern void AlterResourceGroup(AlterResourceGroupStmt *stmt);
/* catalog access function */
extern Oid get_resgroup_oid(const char *name, bool missing_ok);
extern char *GetResGroupNameForId(Oid oid);
extern Oid GetResGroupIdForRole(Oid roleid);
extern void GetResGroupCapabilities(Relation rel,
Oid groupId,
ResGroupCaps *resgroupCaps);
extern void ResGroupCheckForRole(Oid groupId);
#endif /* RESGROUPCMDS_H */
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦