op_log
Trigger-based row change history recorded after transaction commit.
op_log · Trigger-based row change history recorded after transaction commit.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101894 | op_log | op_log | 1.0.0 | SEC | Apache-2.0 | SQL |
| Relationships | |
|---|---|
| Requires | plv8 |
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:
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.
Main Objects
The reviewed install surface includes these prominent objects:
| Object | Kind | Operational role |
|---|---|---|
op_log_enable | FUNCTION | Callable function from the reviewed install surface. |
data_op_log | TABLE | Extension-owned table; account for its data in backup and upgrades. |
op_log_disable | FUNCTION | Callable function from the reviewed install surface. |
op_log_diff_array | FUNCTION | Callable function from the reviewed install surface. |
op_log_diff_normal | FUNCTION | Callable function from the reviewed install surface. |
op_log_diff_object | FUNCTION | Callable function from the reviewed install surface. |
op_log_diff_object_array | FUNCTION | Callable function from the reviewed install surface. |
op_log_diff_other | FUNCTION | Callable 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.