Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5630edd

Browse files
committed
Update lazy_scan_heap header comment.
The previous comment described how things worked in PostgreSQL 8.2and prior.
1 parent81e3e4f commit5630edd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,18 @@ vacuum_log_cleanup_info(Relation rel, LVRelStats *vacrelstats)
342342
/*
343343
*lazy_scan_heap() -- scan an open heap relation
344344
*
345-
*This routine sets commit status bits, builds lists of dead tuples
346-
*and pages with free space, and calculates statistics on the number
347-
*of live tuples in the heap. When done, or when we run low on space
348-
*for dead-tuple TIDs, invoke vacuuming of indexes and heap.
345+
*This routine prunes each page in the heap, which will among other
346+
*things truncate dead tuples to dead line pointers, defragment the
347+
*page, and set commit status bits (see heap_page_prune). It also builds
348+
*lists of dead tuples and pages with free space, calculates statistics
349+
*on the number of live tuples in the heap, and marks pages as
350+
*all-visible if appropriate. When done, or when we run low on space for
351+
*dead-tuple TIDs, invoke vacuuming of indexes and call lazy_vacuum_heap
352+
*to reclaim dead line pointers.
349353
*
350-
*If there are no indexes then we just vacuum each dirty page as we
351-
*process it, since there's no point in gathering many tuples.
354+
*If there are no indexes then we can reclaim line pointers on the fly;
355+
*dead line pointers need only be retained until all index pointers that
356+
*reference them have been killed.
352357
*/
353358
staticvoid
354359
lazy_scan_heap(Relationonerel,LVRelStats*vacrelstats,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp