Openflow Connector for PostgreSQL Maintenance¶
Note
The connector is subject to the Connector Terms.
This topic describes important maintenance considerations and best practices for maintaining the Openflow Connector for PostgreSQL when making changes to the source PostgreSQL database.
Upgrading PostgreSQL¶
Upgrading the connector requires a different approach depending on whether PostgreSQL is being upgraded to the next minor or major version.
Minor version upgrades
Are data safe.
Require no special treatment.
Require stopping the connector for the duration of the upgrade to avoid reporting connectivity issues.
Continue replicating, after the upgrade, with no data loss.
Major version upgrades
Require the PostgreSQL server to drop replication slots, including any used by the connector.
Cannot preserve, or migrate replication slots to the new version. See also PostgresSQL 17 and later versions upgrades.
Restart replicating all tables from the prior snapshot phase.
To perform a minor version upgrade, do the following:
Stop the connector, including all Processors and Controller Services.
Upgrade PostgreSQL.
Restart the connector.
To perform a major version upgrade, do the following:
Remove all tables from replication in the connector.
Wait until all queues in the connector are empty.
Stop the connector, including all Processors and Controller Services.
Open the Incremental Load group in the connector.
Right-click the top Processor in the group, Read PostgreSQL CDC Stream, and select View state.
Click Clear state.
Click Close.
Upgrade PostgreSQL.
Restart the connector. A new replication slot will be created.
Re-add all tables to begin replication.
PostgresSQL 17 and later versions upgrades¶
PostgreSQL 17 improved upgrading such that it no longer requires dropping replication slots when upgrading to later versions such as 17.1 » 17.0. Upgrading to PostgreSQL 17.0 or later from prior versions (16 and earlier) drops replications slots and should be treated as a major upgrade. Future versions of PostgreSQL may also improve the upgrade process further.