Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
F.29. pg_freespacemap
Prev UpAppendix F. Additional Supplied ModulesHome Next

F.29. pg_freespacemap

Thepg_freespacemap module provides a means for examining thefree space map (FSM). It provides a function calledpg_freespace, or two overloaded functions, to be precise. The functions show the value recorded in the free space map for a given page, or for all pages in the relation.

By default use is restricted to superusers and roles with privileges of thepg_stat_scan_tables role. Access may be granted to others usingGRANT.

The values stored in the free space map are not exact. They're rounded to precision of 1/256th ofBLCKSZ (32 bytes with defaultBLCKSZ), and they're not kept fully up-to-date as tuples are inserted and updated.

For indexes, what is tracked is entirely-unused pages, rather than free space within pages. Therefore, the values are not meaningful, just whether a page is in-use or empty.


Prev Up Next
F.28. pgcrypto Home F.30. pg_prewarm
pdfepub
Go to PostgreSQL 15
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp