PAUSE MIRROR
temporarily stops a mirror from syncing. Use this to perform maintenance, inspections, or configuration changes without deleting the mirror.
- As of today, mirrors can only be paused during CDC and not during initial load or query replication.
- The PostgreSQL source replication slot will still exist and it will continue to grow as long the mirror is paused.
- Pausing a mirror enables you to then add tables to the CDC mirror, along with editing the Sync Interval and Pull Batch Size.
Syntax
Behavior
- When
IF EXISTS
is provided, the command is a no-op if the mirror is missing. - If the mirror is currently active, the command will stop future sync runs and attempt to gracefully pause any in-flight work.
- If the mirror is already paused, the command is a no-op.
Considerations
- Pausing preserves the mirror configuration and state so it can be resumed later with Resume Mirror.