Skip to content

op_log

Trigger-based row change history recorded after transaction commit.

op_log · Trigger-based row change history recorded after transaction commit.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101894op_logop_log1.0.0SECApache-2.0SQL
Relationships
Requiresplv8

Usage

Sources:

op_log Trigger-based row change history recorded after transaction commit.

Enablement

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

CREATE EXTENSION op_log CASCADE;

The reviewed control or official workflow requires plv8. CASCADE only succeeds when those extension files are already installed on the server.

Core Workflow

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

SELECT op_log_disable('your_table_name'::regclass);

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
op_log_enableFUNCTIONCallable function from the reviewed install surface.
data_op_logTABLEExtension-owned table; account for its data in backup and upgrades.
op_log_disableFUNCTIONCallable function from the reviewed install surface.
op_log_diff_arrayFUNCTIONCallable function from the reviewed install surface.
op_log_diff_normalFUNCTIONCallable function from the reviewed install surface.
op_log_diff_objectFUNCTIONCallable function from the reviewed install surface.
op_log_diff_object_arrayFUNCTIONCallable function from the reviewed install surface.
op_log_diff_otherFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader