summaryrefslogtreecommitdiff
path: root/src/include/storage
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-06-08 18:23:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-06-08 18:23:53 +0000
commita04a423599b347325f9a73dfb2d533b24e1cbab3 (patch)
tree5aeb620900a705222eb202c7b4b1d33266d1c190 /src/include/storage
parent6d6d14b6d52f7a709fba8fd23244a7de014f2048 (diff)
downloadpostgresql-a04a423599b347325f9a73dfb2d533b24e1cbab3.tar.gz
Arrange for large sequential scans to synchronize with each other, so that
when multiple backends are scanning the same relation concurrently, each page is (ideally) read only once. Jeff Davis, with review by Heikki and Tom.
Diffstat (limited to 'src/include/storage')
-rw-r--r--src/include/storage/lwlock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h
index 477284b7d1..046064cdc1 100644
--- a/src/include/storage/lwlock.h
+++ b/src/include/storage/lwlock.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/lwlock.h,v 1.36 2007/04/16 18:30:04 alvherre Exp $
+ * $PostgreSQL: pgsql/src/include/storage/lwlock.h,v 1.37 2007/06/08 18:23:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -62,6 +62,7 @@ typedef enum LWLockId
AddinShmemInitLock,
AutovacuumLock,
AutovacuumScheduleLock,
+ SyncScanLock,
/* Individual lock IDs end here */
FirstBufMappingLock,
FirstLockMgrLock = FirstBufMappingLock + NUM_BUFFER_PARTITIONS,