greenplumn gp_partition_template 源码

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

greenplumn gp_partition_template 代码

文件路径:/src/include/catalog/gp_partition_template.h

/*-------------------------------------------------------------------------
 *
 * gp_partition_template.h
 *
 *	  definition of the "partitioned table" storing sub partition template
 *	  system catalog (gp_partition_template)
 *
 *
 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/catalog/gp_partition_template.h
 *
 * NOTES
 *	  The Catalog.pm module reads this file and derives schema
 *	  information.
 *
 *-------------------------------------------------------------------------
 */
#ifndef GP_PARTITION_TEMPLATE_H
#define GP_PARTITION_TEMPLATE_H

#include "catalog/genbki.h"
#include "catalog/gp_partition_template_d.h"
#include "nodes/parsenodes.h"

/* ----------------
 *		gp_partition_template definition.  cpp turns this into
 *		typedef struct FormData_gp_partition_template
 * ----------------
 */
CATALOG(gp_partition_template,5022,PartitionTemplateRelationId)
{
	Oid			relid;		/* partitioned table oid */
	int16       level;

#ifdef CATALOG_VARLEN
	pg_node_tree template;
#endif
} FormData_gp_partition_template;

FOREIGN_KEY(relid REFERENCES pg_class(oid));

/* ----------------
 *		Form_gp_partition_template corresponds to a pointer to a tuple with
 *		the format of gp_partition_template relation.
 * ----------------
 */
typedef FormData_gp_partition_template *Form_gp_partition_template;

extern void StoreGpPartitionTemplate(Oid relid, int32 level,
									 GpPartitionDefinition *gpPartDef);
extern GpPartitionDefinition *GetGpPartitionTemplate(Oid relid, int32 level);
extern void RemoveGpPartitionTemplateByRelId(Oid relid);
extern bool RemoveGpPartitionTemplate(Oid relid, int32 level);

#endif							/* GP_PARTITION_TEMPLATE_H */

相关信息

greenplumn 源码目录

相关文章

greenplumn aoblkdir 源码

greenplumn aocatalog 源码

greenplumn aoseg 源码

greenplumn aovisimap 源码

greenplumn binary_upgrade 源码

greenplumn catalog 源码

greenplumn catversion 源码

greenplumn dependency 源码

greenplumn genbki 源码

greenplumn gp_configuration_history 源码

0  赞