What gets TOASTed in Postgres
A technical explainer describes PostgreSQL’s TOAST mechanism, which compresses oversized values and moves them out of rows when needed. It illustrates the threshold with 2,000 copies of a letter stored uncompressed and 2,001 compressed to 26 bytes with LZ4. PostgreSQL 19, now in beta, switches the default from pglz to LZ4 in builds that support LZ4; PlanetScale says it has already made the change on PostgreSQL 17 and 18.
AI-written summary, checked against the cited sources. How summaries work
