↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Administration Functions

pg_size_bytes

Read the PG 18 manual

Converts a size in human-readable format (as returned by pg_size_pretty) into bytes.

Reading PG 18current·documented in 12 of 27 versions, 9.6 to 20

Signatures & examples

pg_size_bytes ( text ) → bigint
Converts a size in human-readable format (as returned by pg_size_pretty) into bytes. Valid units are bytes, B, kB, MB, GB, TB, and PB.
Version history 3
  1. 15 → 16 changed
  2. 12 → 13 changed
  3. 9.5 → 9.6 added

Definition snapshot: b7bd9cda · English manual source