↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

GUC Parameters / Preset Options

Reports the size of a disk block.

Reading PG 18current·documented in 23 of 24 versions, 8.0 to 20

Type
integer
Context
internal
Measured default
8192
Unit
—
Metadata snapshot
18

Definition PG 18 manual

Reports the size of a disk block. It is determined by the value of BLCKSZ when building the server. The default value is 8192 bytes. The meaning of some configuration variables (such as shared_buffers) is influenced by block_size. See Section 19.4 for information.

Measured default history
Version intervalDefault
9.0 – 198192
Analysis & operational context

Authored guidance from the GUC source snapshot; the version-specific manual above is the definition reference. View source

How it works

Shows the size of a disk block. It is read-only and cannot be changed with SET or configuration-file edits.

It reflects BLCKSZ, normally 8 KiB, chosen when PostgreSQL was built; all heap and index page layouts depend on it.

Interpret it with wal_block_size, wal_segment_size, segment_size. Applications and operations tooling may read block_size for capability or environment detection, but cannot SET it; cross-cluster comparisons must account for build, initdb, and current-database differences.

Operational considerations

Trying to change read-only block_size with SET or a configuration file.

Assuming every cluster, database, or vendor build reports the same value.

Ignoring the value in file-format or feature-compatibility checks.

Treating reported metadata as a performance target instead of an environment fact.

Workload guidance

OLAP: Not tunable. Use block_size to verify format, build, or resource assumptions on analytical nodes and keep every read/write candidate compatible.

OLTP: Not tunable. Record block_size as a deployment/capability fact; if it is unexpected, fix the binary, initdb, or database-creation process rather than trying SET.

SMALL: Not tunable. Preserve it in inventory and incident reports; do not custom-build or rebuild merely to change it without a demonstrated compatibility need.

Version history 6
  1. 16 → 17 changed
  2. 13 → 14 changed
  3. 9.5 → 9.6 changed
  4. 8.2 → 8.3 changed
  5. 8.0 → 8.1 changed
  6. 7.4 → 8.0 added

Related entries

Further reading

Definition snapshot: english-manuals:86fe77715808c5a90dd23c33296… · English manual source