Skip to content

Rename local_blks to temp_blks and fix buffer usage accounting#50

Merged
danolivo merged 1 commit into
mainfrom
fix-092
Mar 5, 2026
Merged

Rename local_blks to temp_blks and fix buffer usage accounting#50
danolivo merged 1 commit into
mainfrom
fix-092

Conversation

@danolivo
Copy link
Copy Markdown
Owner

@danolivo danolivo commented Mar 5, 2026

Replace the local_blks metric with temp_blks to correctly track work_mem pressure. Local blocks (used by temporary tables) were incorrectly treated as a work_mem indicator; temp blocks written (sorts/hash joins spilling to disk) are the actual signal. Also add local buffer hits and reads to blks_accessed for completeness, and exclude temp_blks_written from blks_accessed since it is now tracked separately.

Dump version number to 0.9.2

@danolivo danolivo self-assigned this Mar 5, 2026
@danolivo danolivo added the bug Something isn't working label Mar 5, 2026
Replace the local_blks metric with temp_blks to correctly track work_mem
pressure. Local blocks (used by temporary tables) were incorrectly treated
as a work_mem indicator; temp blocks written (sorts/hash joins spilling to
disk) are the actual signal. Also add local buffer hits and reads to
blks_accessed for completeness, and exclude temp_blks_written from
blks_accessed since it is now tracked separately.

Dump version number to 0.9.2
@danolivo danolivo merged commit 6bedd47 into main Mar 5, 2026
4 checks passed
@danolivo danolivo deleted the fix-092 branch March 5, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant