⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rel.c

📁 关系型数据库 Postgresql 6.5.2
💻 C
字号:
/*------------------------------------------------------------------------- * * rel.c *	  POSTGRES relation descriptor code. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION *	  $Header: /usr/local/cvsroot/pgsql/src/backend/utils/cache/rel.c,v 1.5.2.1 1999/08/02 05:25:00 scrappy Exp $ * *------------------------------------------------------------------------- *//* #define RELREFDEBUG	1 */#include "postgres.h"#include "access/istrat.h"/* *		RelationIsValid is now a macro in rel.h -cim 4/27/91 * *		Many of the RelationGet...() functions are now macros in rel.h *				-mer 3/2/92 *//* * RelationGetIndexStrategy *		Returns index strategy for a relation. * * Note: *		Assumes relation descriptor is valid. *		Assumes relation descriptor is for an index relation. */IndexStrategyRelationGetIndexStrategy(Relation relation){	return relation->rd_istrat;}/* * RelationSetIndexSupport *		Sets index strategy and support info for a relation. * * Note: *		Assumes relation descriptor is a valid pointer to sufficient space. *		Assumes index strategy is valid.  Assumes support is valid if non- *		NULL. *//* ---------------- *		RelationSetIndexSupport * *		This routine saves two pointers -- one to the IndexStrategy, and *		one to the RegProcs that support the indexed access method.  These *		pointers are stored in the space following the attribute data in the *		reldesc. * *	 NEW:  the index strategy and support are now stored in real fields *		   at the end of the structure					  - jolly * ---------------- */voidRelationSetIndexSupport(Relation relation,						IndexStrategy strategy,						RegProcedure *support){	Assert(PointerIsValid(relation));	Assert(IndexStrategyIsValid(strategy));	relation->rd_istrat = strategy;	relation->rd_support = support;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -