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

📄 itemptr.c

📁 关系型数据库 Postgresql 6.5.2
💻 C
字号:
/*------------------------------------------------------------------------- * * itemptr.c *	  POSTGRES disk item pointer code. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION *	  $Header: /usr/local/cvsroot/pgsql/src/backend/storage/page/itemptr.c,v 1.6 1999/05/25 16:11:27 momjian Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include "storage/block.h"#include "storage/off.h"#include "storage/itemptr.h"#include "storage/bufpage.h"/* * ItemPointerEquals *	Returns true if both item pointers point to the same item, *	 otherwise returns false. * * Note: *	Assumes that the disk item pointers are not NULL. */boolItemPointerEquals(ItemPointer pointer1, ItemPointer pointer2){	if (ItemPointerGetBlockNumber(pointer1) ==		ItemPointerGetBlockNumber(pointer2) &&		ItemPointerGetOffsetNumber(pointer1) ==		ItemPointerGetOffsetNumber(pointer2))		return true;	else		return false;}

⌨️ 快捷键说明

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