↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Administration Functions

pg_column_size

Read the PG 18 manual

Shows the number of bytes used to store any individual data value.

Reading PG 18current·documented in 22 of 27 versions, 8.1 to 20

Signatures & examples

pg_column_size ( "any" ) → integer
Shows the number of bytes used to store any individual data value. If applied directly to a table column value, this reflects any compression that was done.
Version history 2
  1. 12 → 13 changed
  2. 8.0 → 8.1 added

Definition snapshot: b7bd9cda · English manual source