# What gets TOASTed in Postgres

DevFeed: [What gets TOASTed in Postgres](<https://devfeed.tech/articles/what-gets-toasted-in-postgres-85435.md>)

Original publisher: [Read original article](<https://planetscale.com/blog/what-gets-toasted-in-postgres>)

Author: Ahmed Darwich

Published: 2026-10-12T00:00:00Z

Content type: article

Language: en

Sources: [PlanetScale](<https://devfeed.tech/sources/blog-planetscale.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [xz](<https://devfeed.tech/topics/xz.md>)

Tags: [engineering](<https://devfeed.tech/tags/engineering.md>), [it](<https://devfeed.tech/tags/it.md>), [lz4](<https://devfeed.tech/tags/lz4.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgres-19](<https://devfeed.tech/tags/postgres-19.md>), [toast](<https://devfeed.tech/tags/toast.md>)

## AI overview

The article explains when PostgreSQL TOAST compresses or moves variable-length values, and compares pglz with LZ4. LZ4 is faster and can reduce storage, but may compress less effectively and slow some reads. PostgreSQL 19 switches the default TOAST compression to LZ4 in builds with LZ4 support.

## Source excerpt

Postgres 19 switches TOAST compression from pglz to LZ4. LZ4 is faster, but it isn't always smaller, and some reads get slower with it.