Surendra Longre
10/28/2025, 10:55 AMkapa.ai
10/28/2025, 10:55 AMsql CREATE TABLE airbyte_heartbeat ( id SERIAL PRIMARY KEY, timestamp TIMESTAMP NOT NULL DEFAULT current_timestamp, text TEXT ); ALTER PUBLICATION <publicationName> ADD TABLE airbyte_heartbeat; Then configure the "Debezium heartbeat query" in your Postgres source connector: sql INSERT INTO airbyte_heartbeat (text) VALUES ('heartbeat') This solution is detailed in the [(Advanced) Resolving sync failures due to WAL disk consumption](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) documentation. 2. Add High-Traffic Tables to Publication Add tables with high transaction volumes to your publication (you don't need to sync them): sql ALTER PUBLICATION <publicationName> ADD TABLE <high_volume_table>; ## Connector Version Issues There are known bugs in certain connector versions. According to the knowledge sources: - Versions 3.6.19-3.6.33 have a critical bug where the connector commits the wrong LSN during initial snapshots, as described in [this issue](https://github.com/airbytehq/airbyte/issues/49803) - Version 3.6.34 contains the fix for this issue, as mentioned in [this comment](https://github.com/airbytehq/airbyte/issues/49803) - Some users report success by reverting to version 3.6.18 as noted in [this comment](https://github.com/airbytehq/airbyte/issues/55846) ## Configuration Changes 1. Change Invalid CDC Position Behavior: Set it to "Re-sync Data" instead of "Fail Sync" (though this may cause repeated full refreshes) 2. Increase WAL Retention: sql ALTER SYSTEM SET wal_keep_size = '10GB'; ALTER SYSTEM SET max_slot_wal_keep_size = '10GB'; 3. Increase Sync Frequency: Run syncs more frequently to prevent WAL files from being purged before they're consumed The most reliable solution appears to be upgrading to connector version 3.6.34 or later, combined with implementing the heartbeat table approach for databases with low transaction volumes.