A pleasant surprise in PostgreSQL: unlike MySQL, TEXT and VARCHAR(n) have identical performance under the hood! Use TEXT when you don't need an arbitrary character cap, or VARCHAR(n) only when enforcing a business limit. For money or exact decimals, always use NUMERIC(10, 2) (never FLOAT).
ADVERTISEMENT