greenplumn gp_configuration_history 源码

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

greenplumn gp_configuration_history 代码

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

/*-------------------------------------------------------------------------
 *
 * gp_configuration_history.h
 *	  changes in Greenplum system configuration captured in chronological order
 *
 *
 * Portions Copyright (c) 2006-2010, Greenplum inc.
 * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
 *
 *
 * IDENTIFICATION
 *	    src/include/catalog/gp_configuration_history.h
 *
 * NOTES
 *	  the genbki.sh script reads this file and generates .bki
 *	  information from the DATA() statements.
 *
 *-------------------------------------------------------------------------
 */
#ifndef _GP_CONFIGURATION_HISTORY_H_
#define _GP_CONFIGURATION_HISTORY_H_

#include "catalog/genbki.h"
#include "catalog/gp_configuration_history_d.h"

/*
 * Defines for gp_configuration_history table
 * 
 * Used by fault-management components to record a "change history" description
 * with timestamp.
 */

/*
 * The CATALOG definition has to refer to the type of "time" as
 * "timestamptz" (lower case) so that bootstrap mode recognizes it.  But
 * the C header files define this type as TimestampTz.	Since the field is
 * potentially-null and therefore cannot be accessed directly from C code,
 * there is no particular need for the C struct definition to show the
 * field type as TimestampTz --- instead we just make it Datum.
 */

#define timestamptz Datum

/* ----------------
 *		gp_configuration_history definition.  cpp turns this into
 *		typedef struct FormData_gp_configuration_history
 * ----------------
 */
CATALOG(gp_configuration_history,5106,GpConfigHistoryRelationId) BKI_SHARED_RELATION
{
	timestamptz	time;	
	int16		dbid;	
	text		desc;	
} FormData_gp_configuration_history;

/* no foreign keys */

#undef timestamptz


/* ----------------
 *		Form_gp_configuration_history corresponds to a pointer to a tuple with
 *		the format of gp_configuration_history relation.
 * ----------------
 */
typedef FormData_gp_configuration_history *Form_gp_configuration_history;

#endif /*_GP_CONFIGURATION_HISTORY_H_*/

相关信息

greenplumn 源码目录

相关文章

greenplumn aoblkdir 源码

greenplumn aocatalog 源码

greenplumn aoseg 源码

greenplumn aovisimap 源码

greenplumn binary_upgrade 源码

greenplumn catalog 源码

greenplumn catversion 源码

greenplumn dependency 源码

greenplumn genbki 源码

greenplumn gp_distribution_policy 源码

0  赞