pglz_inspect
pglz_inspect · Sample column values to estimate PGLZ compression effectiveness
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102103 | pglz_inspect | pglz_inspect | 0.0.0 | STAT | MIT | Rust |
PostgreSQL · 13, 14, 15, 16, 17, 18
Usage
Sources:
- pgrx-examples/pglz_inspect/pglz_inspect.control
- pgrx-examples/pglz_inspect/README.md
- pgrx-examples/pglz_inspect/Cargo.toml
- pgrx-examples/pglz_inspect/src/lib.rs
- LICENSE
pglz_inspect is a usable PGRX example extension for measuring PGLZ compression on individual values or sampled columns. Its unpublished example manifest uses version 0.0.0.
Core Workflow
Operational Boundaries
pglz_size returns raw/compressed byte counts, ratio and acceptance; pglz_analyze_column reports sampled statistics, pglz_ratio_histogram groups ratios, and pglz_recommend returns advice. Column sampling uses an ORDER BY random() query, which can scan and sort substantial data; estimates depend on samples and planner row estimates. Functions run with the caller’s table permissions and do not change column storage. The control is not superuser-only and does not mark the extension trusted; no preload is specified. The README documents PostgreSQL 13–18; the manifest additionally defines a PG19 build feature, not a verified support claim.