Ir al contenido principal

Entradas

Mostrando las entradas con la etiqueta #postgresql #databases

Postgresql compression

  Which options do we have? — Auto- compression TOAST -able data —  Postgres Pro compression  / encryption —  Cstore_fdw  columnar store extension —  ZSON  extension for jsonb format — Compression file systems (like  ZFS  or  Btrfs ) —  TimeScaleDB  for time-series data This article is divided into 4 parts: — First (about auto-compression, postgres pro & Cstore_fdw) — Second (about ZSON) — Third (TimeScaleDB) — Fourth (Compression file systems) Postgresql auto-compression Briefly : Postgresql hasn’t row- or page-compression, but it can compress values more than 2 kB. The compressor with default strategy works best for attributes of a size between 1K and 1M. In detail : Postgresql uses  TOAST  (The Oversized-Attribute Storage Technique). “ PostgreSQL uses a fixed page size (commonly 8 kB), and does not allow tuples to span multiple pages. Therefore, it is not possible to store very large field values directly. To o...