diff options
author | Peter Geoghegan <pg@bowt.ie> | 2021-08-31 16:55:39 -0700 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2021-08-31 16:55:39 -0700 |
commit | 0f6aa893cb58c2a5a92016914c94865635345a22 (patch) | |
tree | a9da084f78a41b0fc420cf6dd406d9cd45e06712 /src/backend | |
parent | 6320806ac3792a297f1c4eb149c3ddeda25d3930 (diff) | |
download | postgresql-0f6aa893cb58c2a5a92016914c94865635345a22.tar.gz postgresql-0f6aa893cb58c2a5a92016914c94865635345a22.zip |
Remove obsolete nbtree relation extension comment.
Commit 0d1fe9f7 improved the approach that vacuumlazy.c takes when it
encounters an empty heap page. It no acquires the relation extension
lock.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/nbtree/nbtree.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.c index be23395dfbb..30df2447033 100644 --- a/src/backend/access/nbtree/nbtree.c +++ b/src/backend/access/nbtree/nbtree.c @@ -963,11 +963,10 @@ btvacuumscan(IndexVacuumInfo *info, IndexBulkDeleteResult *stats, * recycled. Taking the lock synchronizes things enough to prevent a * problem: either num_pages won't include the new page, or _bt_getbuf * already has write lock on the buffer and it will be fully initialized - * before we can examine it. (See also vacuumlazy.c, which has the same - * issue.) Also, we need not worry if a page is added immediately after - * we look; the page splitting code already has write-lock on the left - * page before it adds a right page, so we must already have processed any - * tuples due to be moved into such a page. + * before we can examine it. Also, we need not worry if a page is added + * immediately after we look; the page splitting code already has + * write-lock on the left page before it adds a right page, so we must + * already have processed any tuples due to be moved into such a page. * * We can skip locking for new or temp relations, however, since no one * else could be accessing them. |