From bdadc9bf1c0900487c372f2403c7c064d177d68c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 9 Jun 2001 18:16:59 +0000 Subject: Remove RelationGetBufferWithBuffer(), which is horribly confused about appropriate pin-count manipulation, and instead use ReleaseAndReadBuffer. Make use of the fact that the passed-in buffer (if there is one) must be pinned to avoid grabbing the bufmgr spinlock when we are able to return this same buffer. Eliminate unnecessary 'previous tuple' and 'next tuple' fields of HeapScanDesc and IndexScanDesc, thereby removing a whole lot of bookkeeping from heap_getnext() and related routines. --- src/include/access/skey.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/include/access/skey.h') diff --git a/src/include/access/skey.h b/src/include/access/skey.h index 2a00e26744e..4e49f51afb1 100644 --- a/src/include/access/skey.h +++ b/src/include/access/skey.h @@ -7,8 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: skey.h,v 1.15 2001/06/01 02:41:36 tgl Exp $ - * + * $Id: skey.h,v 1.16 2001/06/09 18:16:59 tgl Exp $ * * Note: * Needs more accessor/assignment routines. @@ -20,6 +19,7 @@ #include "access/attnum.h" #include "fmgr.h" + typedef struct ScanKeyData { bits16 sk_flags; /* flags */ @@ -38,11 +38,6 @@ typedef ScanKeyData *ScanKey; #define SK_COMMUTE 0x8 /* commute function (not fully supported) */ -#define ScanUnmarked 0x01 -#define ScanUncheckedPrevious 0x02 -#define ScanUncheckedNext 0x04 - - /* * prototypes for functions in access/common/scankey.c */ -- cgit v1.2.3