The situation you're describing—where the WAL (Write-Ahead Log) size is growing, Airbyte syncs report 0 updates, and you see log messages like "Received offset commit request on 'LSN{...}', but ignoring it. LSN flushing is not allowed yet"—is a known issue pattern with the Airbyte Postgres CDC connector. ### Key Points from Knowledge Sources 1.
WAL Not Being Consumed/Flushed - This can happen if the Airbyte connector is not able to commit offsets, which prevents the replication slot from advancing and thus causes WAL files to accumulate. This is often observed when there are no changes in the tables being tracked, or if all events are filtered out, so no offset can be committed. This leads to a growing backlog of WAL segments on the server, as the replication slot cannot acknowledge processed WAL offsets. The log message you see is consistent with this scenario: the connector is not allowed to flush the LSN yet, so it ignores the commit request, and WAL files are not released by Postgres. This is also discussed in the context of filtered events and the need for heartbeat events or high-traffic tables in the publication to advance the LSN and allow WAL cleanup [Forum Post: Stack Syncs and Automated Full Resyncs on CDC](
https://discuss.airbyte.io/t/2675) and [Postgres Troubleshooting Docs](
https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query). 2.
Connector Not Reporting Updates - If the connector is not seeing any changes in the tables included in the publication, or if all changes are filtered out, it will not emit any records, and thus the sync will report 0 updates. This is also why the WAL is not being consumed: the connector only commits offsets when it processes changes relevant to the publication/catalog. If nothing is processed, nothing is committed, and the WAL grows [Forum Post: Stack Syncs and Automated Full Resyncs on CDC](
https://discuss.airbyte.io/t/2675). 3.
Delayed or Failed Worker Start - If the worker was unable to start for a long time (due to infrastructure issues), the WAL may have grown significantly in the meantime. When the connector resumes, if it still does not see any relevant changes, the WAL will continue to grow until changes are processed and offsets are committed. ### Solutions and Workarounds -
Add a Heartbeat Table or High-Traffic Table to the Publication: If your tables have low change volume, consider adding a heartbeat table or a table with frequent changes to the publication. This ensures that the connector always has something to process and can commit offsets, allowing WAL cleanup. You can automate inserts into a heartbeat table using a cron job or similar mechanism. See the [Airbyte Postgres Troubleshooting documentation](
https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) for detailed steps. -
Check Filter Configuration: Ensure that your publication and Airbyte catalog are aligned. If there are tables in the publication not included in the Airbyte sync, or vice versa, it can cause WAL events to be filtered out, preventing offset commits [Forum Post: Stack Syncs and Automated Full Resyncs on CDC](
https://discuss.airbyte.io/t/2675). -
Frequent Syncs: Running syncs more frequently can help prevent WAL from growing too large, as offsets are committed more often [Postgres Troubleshooting Docs](
https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs). -
Connector Version Issues: There have been issues with certain versions of the Postgres connector and the underlying JDBC driver that can affect WAL consumption and offset management. If you are on a version ≥3.6.19, be aware of known issues with PgJDBC 42.7.x and consider downgrading if you suspect this is related [Github Issue #49802](
https://github.com/airbytehq/airbyte/issues/49802). ### Summary Your issue is likely due to the connector not seeing any changes to process (or all changes being filtered out), so it cannot commit offsets, and thus WAL is not being consumed. Adding a heartbeat table or ensuring there is always some change to process in the publication should resolve the WAL growth and allow the connector to advance the replication slot and clean up old WAL files. If you need step-by-step instructions for setting up a heartbeat table or automating inserts, let me know!