Content-Length: 261234 | pFad | http://github.com/postgrespro/postgres/commit/219c024c64ced7ce497fe455b1e3dd7b70012775

BA Repair out-of-date information in src/backend/storage/buffer/README. · postgrespro/postgres@219c024 · GitHub
Skip to content

Commit 219c024

Browse files
committed
Repair out-of-date information in src/backend/storage/buffer/README.
In commit d526575, we changed things so that buffer usage counts are incremented when the buffer is pinned, rather than when it is unpinned, but the README file didn't get the memo. Report by Amit Kapila.
1 parent b94ce6e commit 219c024

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/buffer

1 file changed

+2
-2
lines changed

src/backend/storage/buffer/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ need to take system-wide locks during common operations. It works like
169169
this:
170170

171171
Each buffer header contains a usage counter, which is incremented (up to a
172-
small limit value) whenever the buffer is unpinned. (This requires only the
173-
buffer header spinlock, which would have to be taken anyway to decrement the
172+
small limit value) whenever the buffer is pinned. (This requires only the
173+
buffer header spinlock, which would have to be taken anyway to increment the
174174
buffer reference count, so it's nearly free.)
175175

176176
The "clock hand" is a buffer index, NextVictimBuffer, that moves circularly

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/219c024c64ced7ce497fe455b1e3dd7b70012775

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy