Skip to content

pg_misc_functions

Administrative test functions for backend errors, PANIC, crashes, and failover exercises.

pg_misc_functions · Administrative test functions for backend errors, PANIC, crashes, and failover exercises.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101918pg_misc_functionspg_misc_functions1.0ADMINPostgreSQLC

Usage

Sources:

pg_misc_functions Administrative test functions for backend errors, PANIC, crashes, and failover exercises.

Enablement

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

CREATE EXTENSION pg_misc_functions;

Core Workflow

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

SELECT pg_current_wal_tli();
SELECT pg_control_checkpoint_tli();

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
pg_signal_backendFUNCTIONCallable function from the reviewed install surface.
pg_cause_fatalFUNCTIONCallable function from the reviewed install surface.
pg_cause_panicFUNCTIONCallable function from the reviewed install surface.
pg_control_checkpoint_previous_tliFUNCTIONCallable function from the reviewed install surface.
pg_control_checkpoint_tliFUNCTIONCallable function from the reviewed install surface.
pg_current_wal_tliFUNCTIONCallable function from the reviewed install surface.
pg_last_wal_receive_tliFUNCTIONCallable function from the reviewed install surface.
pg_last_wal_replay_tliFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Catalog lifecycle is abandoned; test upgrades, dump/restore, and server compatibility before production use.

Table reader