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

📄 lselect.h

📁 关系型数据库 Postgresql 6.5.2
💻 H
字号:
/*------------------------------------------------------------------------- * * lselect.h *	  definitions for the replacement selection algorithm. * * * Copyright (c) 1994, Regents of the University of California * * $Id: lselect.h,v 1.12.2.1 1999/08/02 05:25:25 scrappy Exp $ * *------------------------------------------------------------------------- */#ifndef LSELECT_H#define LSELECT_H#include "utils/syscache.h"struct leftist{	short		lt_dist;		/* distance to leaf/empty node */	short		lt_devnum;		/* device number of tuple */	HeapTuple	lt_tuple;	struct leftist *lt_left;	struct leftist *lt_right;};/* replaces global variables in lselect.c to make it reentrant */typedef struct{	TupleDesc	tupDesc;	int			nKeys;	ScanKey		scanKeys;	int			sortMem;		/* needed for psort */} LeftistContextData;typedef LeftistContextData *LeftistContext;extern struct leftist *lmerge(struct leftist * pt, struct leftist * qt,	   LeftistContext context);extern HeapTuple gettuple(struct leftist ** treep, short *devnum,		 LeftistContext context);extern void puttuple(struct leftist ** treep, HeapTuple newtuple, short devnum,		 LeftistContext context);extern int	tuplecmp(HeapTuple ltup, HeapTuple rtup, LeftistContext context);#ifdef EBUGextern void checktree(struct leftist * tree, LeftistContext context);extern int	checktreer(struct leftist * tree, int level, LeftistContext context);#endif	 /* EBUG */#endif	 /* LSELECT_H */

⌨️ 快捷键说明

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