Changeset 55
- Timestamp:
- 10/02/07 21:26:41 (5 years ago)
- Location:
- hw/hw2/postgresql-8.2.4/src
- Files:
-
- 2 modified
-
backend/access/gist/gistget.c (modified) (2 diffs)
-
include/access/gist_private.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hw/hw2/postgresql-8.2.4/src/backend/access/gist/gistget.c
r53 r55 143 143 /* insert a new priority queue entry into so->pq */ 144 144 static void 145 gist_pq_insertpq(GISTScanOpaque so, GISTPQ *newpq) 145 gist_pq_insertpq(GISTScanOpaque so, /* State of a GiST scan */ 146 GISTPQ *newpq /* a new GISTPQ entry */ 147 ) 146 148 { 147 149 /* CS186 HW2: fill me in! */ … … 150 152 /* 151 153 * given the current state of the index scan, generate a GISTPQ to insert into 152 * the priority queue, and insert it. 154 * the priority queue, and insert it. Note that the "stack" holds the blocks 155 * from the root to the current item. 156 * There are two cases to consider: 157 * 1) the item being inserted is an entry in a leaf node, identified by a 158 * block number (from the stack), and the offset. It points to a data 159 * item in the database (isdata == true). 160 * 2) the item being inserted is the block number of an index node to 161 * be visited next (isdata == false). The key corresponding to this 162 * block number is in the block's *parent* in the tree (which can be 163 * found in the stack) at the given offset. 153 164 */ 154 165 static void -
hw/hw2/postgresql-8.2.4/src/include/access/gist_private.h
r23 r55 56 56 typedef struct GISTPQ 57 57 { 58 /* fill me in! */58 /* CS186 HW2: fill me in! */ 59 59 } GISTPQ; 60 60
