gp_pitr
gp_pitr · Distributed restore-point and WAL archiving helpers for Greenplum
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102201 | gp_pitr | gp_pitr | 1.1 | ADMIN | Apache-2.0 | C |
Usage
Sources:
- gpdb-doc/markdown/ref_guide/modules/gp_pitr.html.md
- gpcontrib/gp_pitr/gp_pitr–1.1.sql
- gpcontrib/gp_pitr/Makefile
- LICENSE
- gpcontrib/gp_pitr/gp_pitr.control
gp_pitr exposes cluster-wide recovery helpers for Greenplum 6. Version 1.1 provides a combined archiver view and functions used by recovery tooling. Installing the module alone does not configure backups or WAL archiving.
Core Workflow
Operational Boundaries
gp_stat_archiver combines the coordinator and segment archiver statistics, with gp_segment_id identifying each source; the coordinator uses -1. The installation script grants public read access to this view.
gp_create_restore_point(text) creates a named restore point across the cluster and returns segment identifiers with their recovery LSNs. gp_switch_wal() switches WAL files and returns the segment identifier, LSN, and file name. Both functions execute on the coordinator and the installation script revokes their execution privilege from PUBLIC; they are privileged interfaces for recovery tooling.
Register the module as a superuser. The C library loads on demand without preload configuration, and the extension is not relocatable. Version 1.1 includes an upgrade script from 1.0. These interfaces depend on Greenplum kernel facilities and do not establish compatibility with vanilla PostgreSQL. A complete recovery procedure still needs the corresponding cluster backup and WAL archive.