summaryrefslogtreecommitdiff
path: root/src/include/access/skey.h
diff options
context:
space:
mode:
authorTom Lane2001-06-09 18:16:59 +0000
committerTom Lane2001-06-09 18:16:59 +0000
commitbdadc9bf1c0900487c372f2403c7c064d177d68c (patch)
treea64acd263294e66f91b8f5868f083b75fb5c8507 /src/include/access/skey.h
parent32479891305bb80f428f189d48a1661dbe39d4f4 (diff)
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.
Diffstat (limited to 'src/include/access/skey.h')
-rw-r--r--src/include/access/skey.h9
1 files changed, 2 insertions, 7 deletions
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
*/