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
| Type | Storage | Recommendation |
|---|---|---|
| BIGINT / GENERATED ALWAYS AS IDENTITY | 8 bytes | Prefer over 32-bit SERIAL for large tables |
| TEXT | Variable | Same performance as VARCHAR(n) |
| NUMERIC(p,s) | Variable | Exact decimal for currency (never FLOAT) |
| TIMESTAMPTZ | 8 bytes | Always store timezone-aware UTC timestamps |
| JSONB | Binary JSON | Supports 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