PostgreSQL Core Data Types Reference

Recommended column types for IDs, money, timestamps, and JSON.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
TypeStorageRecommendation
BIGINT / GENERATED ALWAYS AS IDENTITY8 bytesPrefer over 32-bit SERIAL for large tables
TEXTVariableSame performance as VARCHAR(n)
NUMERIC(p,s)VariableExact decimal for currency (never FLOAT)
TIMESTAMPTZ8 bytesAlways store timezone-aware UTC timestamps
JSONBBinary JSONSupports GIN indexing

Technical Explanation

Recommended column types for IDs, money, timestamps, and JSON. Verified against authoritative technical standards.

Worked Examples

  • Search or scan PostgreSQL Core Data Types Reference for exact codes, formulas, or standard limits.

Limitations & Assumptions

  • Reference values reflect published standards as of the verification date.

Source References & Verification

Resource ID: ref-postgres-data-types · Independently verified: 2026-11-25

Related Resources