Skip to content

pg_exclusive_backup

Compatibility functions for exclusive-style physical backup on PostgreSQL 15 or later.

pg_exclusive_backup · Compatibility functions for exclusive-style physical backup on PostgreSQL 15 or later.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101907pg_exclusive_backuppg_exclusive_backup1.0ADMINC

PostgreSQL · 15, 16, 17, 18

Usage

Sources:

pg_exclusive_backup Compatibility functions for exclusive-style physical backup on PostgreSQL 15 or later.

Enablement

Install the files for the intended server, then create pg_exclusive_backup in the target database:

CREATE EXTENSION pg_exclusive_backup;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT pg_start_backup('nightly', true);
SELECT pg_is_in_backup();

-- Copy the physical backup while backup mode is active.
SELECT pg_stop_backup();

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
pg_catalog.pg_start_backupFUNCTIONCallable function from the reviewed install surface.
pg_catalog.pg_stop_backupFUNCTIONCallable function from the reviewed install surface.
pg_catalog.pg_backup_start_timeFUNCTIONCallable function from the reviewed install surface.
pg_catalog.pg_is_in_backupFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The verified PostgreSQL-major evidence covers 15, 16, 17, 18; do not infer unlisted majors.
  • The extension fixes or creates schema objects under pg_catalog; include them in privilege and backup review.
  • Catalog lifecycle is deprecated; test upgrades, dump/restore, and server compatibility before production use.

Table reader