PostgreSQL Schema Change Sync
PostgreSQL CDC with Auto Table Creation can apply column additions and removals during incremental replication. The job detects the new table definition when a later insert, update, or delete produces a change record. Wait for the initial snapshot to finish before changing the source schema. For SQL mapping, maintain the target schema and the SQL projection yourself.
Supported schema changes
| PostgreSQL operation | Effect on the warehouse table |
|---|---|
ADD COLUMN | Adds a nullable column using the PostgreSQL type mapping. On Core 26.1.3 and 26.1.4, existing warehouse rows receive no backfill. The new column has no target default, and later changes carry the values PostgreSQL wrote. |
DROP COLUMN | Removes the corresponding target column. |
| Rename, simultaneous column additions and removals, or a type change | Requires manual review. The job cannot infer a safe rename or type conversion. |
| Changes to a default, nullability, key, or index | Manage the target definition explicitly. |
On Core 26.1.4, a possible rename pauses the job for intervention. On Core 26.1.3 the job can skip the ambiguous DDL and continue writing. Check both schemas after these operations. Reconcile the target columns and their types before resuming a paused job.
Control schema evolution
In Core 26.1.4, set the source property schema_change_behavior to evolve (default) to apply supported DDL or to ignore to maintain the target schema yourself. The latter mode continues loading compatible rows and skips source DDL. Changes skipped in this mode are not replayed when you switch back to evolve.
To change an existing job, pause it before altering its source properties. Replace the job and target database names with your own.
PAUSE JOB WHERE JobName = 'replicate_postgres';
ALTER JOB replicate_postgres FROM POSTGRES ("schema_change_behavior" = "ignore")
TO DATABASE analytics;
RESUME JOB WHERE JobName = 'replicate_postgres';
Use the Continuous Load job and task queries to check for errors after the next source write.