Skip to content

table_change_tracker

Tracks last modification timestamps for selected tables in shared memory.

table_change_tracker · Tracks last modification timestamps for selected tables in shared memory.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101959table_change_trackertable_change_tracker1.0STATMITC

Usage

Sources:

table_change_tracker Tracks last modification timestamps for selected tables in shared memory.

Enablement

Merge table_change_tracker into the existing preload list, restart PostgreSQL, and then create table_change_tracker in each database that needs its SQL objects:

shared_preload_libraries = 'table_change_tracker'
CREATE EXTENSION table_change_tracker;

Core Workflow

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

-- Get timestamps for multiple tables
SELECT get_last_timestamps(ARRAY['public.users', 'public.orders']::regclass[]);

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
enable_table_trackingFUNCTIONCallable function from the reviewed install surface.
disable_table_trackingFUNCTIONCallable function from the reviewed install surface.
get_last_timestampFUNCTIONCallable function from the reviewed install surface.
get_last_timestampsFUNCTIONCallable function from the reviewed install surface.
is_table_trackedFUNCTIONCallable function from the reviewed install surface.
set_last_timestampFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Preloading table_change_tracker changes cluster startup state; stage configuration and restart changes separately from CREATE EXTENSION.

Table reader