pgwrh_ui
pgwrh · PostgREST browser console for pgwrh placement and rollout management
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101992 | pgwrh_ui | pgwrh | 1.0.0 | ADMIN | AGPL-3.0-or-later | SQL |
PostgreSQL · 18
Usage
Sources:
pgwrh_ui 1.0.0-alpha1 provides a browser console for a PostgreSQL 18 pgwrh controller. It displays placement, replica state, and rollout blockers, and offers optional management actions. Install it only in the controller database. A separate PostgREST process serves its SQL endpoints and embedded browser assets.
Enable the Console
The database needs pgwrh 1.0.0-alpha1 and PL/pgSQL. The console does not require pgwrh_wait or its preload. PostgREST must support custom media handlers; the upstream Compose example uses 14.16. As a trusted administrator on the controller:
Create the deployment roles using the supplied readonly.sql and, if management is needed, operator.sql. Roles are not created or removed by the extension. From the source checkout, with CONTROLLER_ADMIN_URI set to an administrator connection:
Configure authentication for that login using the deployment’s normal method, then start the external service with the supplied configuration:
The supplied configuration exposes the console at the local /rpc/index route with viewer access. Expose only the pgwrh_ui schema. Reload PostgREST’s schema cache after extension or function changes:
Access and Management
pgwrh_ui_viewer can view every group on the controller. pgwrh_ui_operator can additionally change replica weights and routing status, register replicas, and start, commit, or roll back rollouts. Grant operator membership only after running the operator setup script and configuring authentication. The console has no built-in login page or token manager; remote access needs authenticated PostgREST roles or an authenticated reverse proxy.
Replica provisioning, replication credentials, source grants, group creation, and table policies remain SQL administration tasks. A group has one shared draft; stale submissions return HTTP 409 and must be reviewed again. Maintenance routing changes do not delete data or stop assigned replication.
Monitoring Limits
Readiness reports have no per-replica heartbeat timestamp or durable history. Zero blockers does not prove live reachability. Displayed WAL lag is a byte distance, not elapsed time or a read-consistency promise. Controller failure also makes the console unavailable. This alpha supports fresh installation only; package installation does not start PostgREST.