@ -12,7 +12,7 @@
* Portions Copyright ( c ) 1994 , Regents of the University of California
* Portions Copyright ( c ) 1994 , Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $ PostgreSQL : pgsql / src / backend / access / nbtree / nbtree . c , v 1.121 2004 / 11 / 11 00 : 32 : 50 neilc Exp $
* $ PostgreSQL : pgsql / src / backend / access / nbtree / nbtree . c , v 1.122 2004 / 11 / 17 03 : 13 : 38 neilc Exp $
*
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
*/
@ -477,8 +477,8 @@ btmarkpos(PG_FUNCTION_ARGS)
/* bump pin on current buffer for assignment to mark buffer */
/* bump pin on current buffer for assignment to mark buffer */
if ( ItemPointerIsValid ( & ( scan - > currentItemData ) ) )
if ( ItemPointerIsValid ( & ( scan - > currentItemData ) ) )
{
{
so - > btso_mrkbuf = ReadBuffer ( scan - > indexRelation ,
IncrBufferRefCount ( so - > btso_curbuf ) ;
BufferGetBlockNumber ( so - > btso_curbuf ) ) ;
so - > btso_mrkbuf = so - > btso_curbuf ;
scan - > currentMarkData = scan - > currentItemData ;
scan - > currentMarkData = scan - > currentItemData ;
so - > mrkHeapIptr = so - > curHeapIptr ;
so - > mrkHeapIptr = so - > curHeapIptr ;
}
}
@ -509,8 +509,8 @@ btrestrpos(PG_FUNCTION_ARGS)
/* bump pin on marked buffer */
/* bump pin on marked buffer */
if ( ItemPointerIsValid ( & ( scan - > currentMarkData ) ) )
if ( ItemPointerIsValid ( & ( scan - > currentMarkData ) ) )
{
{
so - > btso_curbuf = ReadBuffer ( scan - > indexRelation ,
IncrBufferRefCount ( so - > btso_mrkbuf ) ;
BufferGetBlockNumber ( so - > btso_mrkbuf ) ) ;
so - > btso_curbuf = so - > btso_mrkbuf ;
scan - > currentItemData = scan - > currentMarkData ;
scan - > currentItemData = scan - > currentMarkData ;
so - > curHeapIptr = so - > mrkHeapIptr ;
so - > curHeapIptr = so - > mrkHeapIptr ;
}
}