RefLib

Reference library for AI

Back

postgresql_16:4.16.3.5 Initial Data Synchronization

PostgreSQL 16 > Server Administration > Logical Replication > Row Filters > Initial Data Synchronization

If the subscription requires copying pre-existing table data and a publication contains WHERE clauses, only data that satisfies the row filter expressions is copied to the subscriber.

If the subscription has several publications in which a table has been published with different WHERE clauses, rows that satisfy *any* of the expressions will be copied. See (see postgresql_16:4.16.3.6) for details.

Warning

Because initial data synchronization does not take into account the publish (see sql-createpublication-with-publish) parameter when copying existing table data, some rows may be copied that would not be replicated using DML. Refer to (see postgresql_16:4.16.7.1), and see (see postgresql_16:4.16.2.2) for examples.

Note

If the subscriber is in a release prior to 15, copying pre-existing data doesn't use row filters even if they are defined in the publication. This is because old releases can only copy the entire table data.

Back