Skip to content

PostgreSQL PostgreSQL Incremental Loading

Incremental Loading with Commit Timestamps

For optimal incremental load performance, it is recommended to enable track_commit_timestamp = on in your PostgreSQL configuration (postgresql.conf). This allows Qualytics to detect recently modified rows using transaction commit timestamps (pg_xact_commit_timestamp), reducing the amount of data read during incremental operations.

Fallback to a Full Load

If the source database does not track commit timestamps (track_commit_timestamp is off), an incremental load automatically falls back to a full load instead of failing. The operation completes normally, reads the full table, and reports a warning explaining that commit timestamp tracking is disabled on the source database. Because the fallback reads the full table, the operation does not record an incremental position for that load.

If Qualytics cannot verify the setting on the source database, the configured incremental behavior is kept unchanged.

To restore incremental loading:

  1. Set track_commit_timestamp = on in postgresql.conf and restart the PostgreSQL server. The setting only takes effect after a restart.
  2. Run a Sync operation on the datastore.

Note

PostgreSQL records commit timestamps only for transactions committed after the setting is enabled. Changes made while the setting was off are not tracked by commit timestamps; they are covered by the full loads that ran during that period.