pgcozy
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgcozy | 1.0 | ADMIN | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5190 | pgcozy | No | No | No | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | pgcozy | pg_buffercache, pg_prewarm |
| RPM | PIGSTY | 1.0 | 1817161514 | pgcozy_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-pgcozy | - |
Build
You can build the RPM / DEB packages for pgcozy using pig build:
Install
You can install pgcozy directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
pgcozy: Pre-warming shared buffers according to previous pg_buffercache snapshots for PostgreSQL.
pgcozy snapshots the current shared buffer state and can later restore (pre-warm) buffers from those snapshots. Requires pg_buffercache and pg_prewarm extensions.
Initialize
Creates the pgcozy schema with a snapshots table and the cozy_type type.
Take a Snapshot
Snapshots are stored as JSONB in pgcozy.snapshots with columns: id, snapshot_date, snapshot. Each entry contains table_name, block_no, and popularity.
Warm from a Snapshot
Review Snapshots
Snapshots are stored in JSONB and can be reviewed, backed up, or transferred between servers.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)