mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user