1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-15 05:46:52 +03:00

Get rid of page-level locking in btree-s.

LockBuffer is used to acquire read/write access
to index pages. Pages are released before leaving
index internals.
This commit is contained in:
Vadim B. Mikheev
1999-05-25 18:20:31 +00:00
parent 07842084fe
commit 7d443a85af
7 changed files with 73 additions and 132 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.26 1999/04/13 17:18:29 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.27 1999/05/25 18:20:31 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -301,9 +301,6 @@ _bt_formitem(IndexTuple itup)
btitem = (BTItem) palloc(nbytes_btitem);
memmove((char *) &(btitem->bti_itup), (char *) itup, tuplen);
#ifndef BTREE_VERSION_1
btitem->bti_oid = newoid();
#endif
return btitem;
}