Skip site navigation (1) Skip section navigation (2)

pgsql-server/src backend/access/heap/heapam.c ...

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/access/heap/heapam.c ...
Date: 2004-04-21 18:24:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	tgl(at)svr1(dot)postgresql(dot)org	04/04/21 15:24:27

Modified files:
	src/backend/access/heap: heapam.c 
	src/backend/access/index: indexam.c 
	src/backend/access/nbtree: nbtinsert.c nbtpage.c nbtree.c 
	src/backend/executor: nodeIndexscan.c nodeSeqscan.c 
	src/include/access: heapam.h nbtree.h 

Log message:
	Tweak indexscan and seqscan code to arrange that steps from one page to
	the next are handled by ReleaseAndReadBuffer rather than separate
	ReleaseBuffer and ReadBuffer calls.  This cuts the number of acquisitions
	of the BufMgrLock by a factor of 2 (possibly more, if an indexscan happens
	to pull successive rows from the same heap page).  Unfortunately this
	doesn't seem enough to get us out of the recently discussed context-switch
	storm problem, but it's surely worth doing anyway.

pgsql-committers by date

Next:From: Bruce MomjianDate: 2004-04-21 20:51:54
Subject: pgsql-server/src/tools/thread thread_test.c
Previous:From: Tom LaneDate: 2004-04-21 18:06:31
Subject: pgsql-server/src include/storage/buf_internals ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group