Skip to content

gp_pitr

Distributed restore-point and WAL archiving helpers for Greenplum

gp_pitr · Distributed restore-point and WAL archiving helpers for Greenplum

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102201gp_pitrgp_pitr1.1ADMINApache-2.0C

Usage

Sources:

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

CREATE EXTENSION gp_pitr;
SELECT * FROM gp_stat_archiver ORDER BY gp_segment_id;

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.

Table reader