Database & SQL

PostgreSQL Data Type Reference

Search PostgreSQL data types by name or use case to get storage size, precision characteristics, performance notes, and common anti-patterns to avoid.

No data is transmitted โ€” everything runs locally

PostgreSQL Data Type Reference

The PostgreSQL Data Type Reference covers storage size, precision, performance characteristics, and common anti-patterns for all PostgreSQL built-in data types.

โ€ข Look up whether to use TEXT or VARCHAR for a string column

โ€ข Confirm TIMESTAMPTZ is the correct type for storing event timestamps across timezones

โ€ข Find the correct type for storing monetary values (NUMERIC not FLOAT)

โ€ข Check UUID storage size vs varchar(36) for a primary key decision

PostgreSQL Connection Pool Calculator โ€” Calculate optimal PgBouncer pool size from max_connections, app servers, and query throughput.
Open PostgreSQL Connection Pool Calculator โ†’
What does this tool tell you?
The PostgreSQL Data Type Reference covers storage size, precision, performance characteristics, and common anti-patterns for all PostgreSQL built-in data types.
What affects the result most?
INTEGER vs BIGINT: 4 bytes vs 8 bytes โ€” use BIGINT for auto-increment PKs expected to exceed 2.1B rows. TEXT vs VARCHAR(n): no performance difference in PostgreSQL โ€” TEXT is preferred, VARCHAR adds a constraint. NUMERIC(p,s) vs FLOAT: NUMERIC is exact decimal, FLOAT is approximate IEEE 754 โ€” use NUMERIC for money.
How should I use the result?
Use this tool to orient quickly to the concepts, field names, or values you are about to look up in a full specification or vendor documentation. It summarizes the common cases; the authoritative source remains whichever standard or vendor doc defines the values themselves.
Database credential management. 1Password Teams for database teams managing connection strings, replication credentials, and DBA access keys.
View DB credential management โ†’
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation