pg_hardstorage
pg_hardstorage · SQL views and writer functions for pg_hardstorage backup state
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102033 | pg_hardstorage | pg_hardstorage | 1.0 | ADMIN | Apache-2.0 | SQL |
| Relationships | |
|---|---|
| Requires | plpgsql |
Usage
Sources:
- Official pg_hardstorage.control
- Official pg_hardstorage–1.0.sql
- Official pg_hardstorage_db_install-extension.md
pg_hardstorage SQL extension 1.0 exposes backup status through tables, views and writer functions. It is the database integration surface of the separate Go backup CLI; creating this extension does not start backups or WAL streaming.
Enable and Inspect
Writer and Reader Roles
With extension files installed, a superuser creates the extension in its fixed schema. Installation also creates the cluster-wide pg_hardstorage_writer NOLOGIN role if absent. Readers receive schema usage and SELECT on the three public views. pg_hardstorage.upsert_backup(), pg_hardstorage.upsert_health() and pg_hardstorage.upsert_rpo() are SECURITY DEFINER functions with a fixed search path; execution and direct state-table writes are restricted to the writer role. Grant membership only to the trusted state publisher.
Population and Maintenance
In this source revision no built-in backup data path calls the upsert functions, so the views remain empty until an operator publishes state. The CLI also exposes pg_hardstorage db install-extension with dry-run and SQL-printing options; that path installs its bundled SQL surface and should not be confused with a registered extension upgrade. The SQL extension uses PL/pgSQL during installation, needs no PostgreSQL shared library or preload, and has no independently documented PostgreSQL-major support matrix. CLI release numbers differ from SQL version 1.0.