diff options
| author | Heikki Linnakangas | 2011-03-08 10:07:29 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2011-03-08 10:12:54 +0000 |
| commit | 4cd3fb6e1244383fc9f77906e7162de0559ba354 (patch) | |
| tree | a331f62a5812c71f32c8ec01c1a681c538ed307f /src/include | |
| parent | 804d13adfd2f66c70d8d95a606dde621b3213179 (diff) | |
Truncate predicate lock manager's SLRU lazily at checkpoint. That's safer
than doing it aggressively whenever the tail-XID pointer is advanced, because
this way we don't need to do it while holding SerializableXactHashLock.
This also fixes bug #5915 spotted by YAMAMOTO Takashi, and removes an
obsolete comment spotted by Kevin Grittner.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/predicate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/storage/predicate.h b/src/include/storage/predicate.h index 163d8cb3ff5..9a26ecf2d36 100644 --- a/src/include/storage/predicate.h +++ b/src/include/storage/predicate.h @@ -36,6 +36,8 @@ extern int max_predicate_locks_per_xact; extern void InitPredicateLocks(void); extern Size PredicateLockShmemSize(void); +extern void CheckPointPredicate(void); + /* predicate lock reporting */ extern bool PageIsPredicateLocked(const Relation relation, const BlockNumber blkno); |
