Nazar Meliukh
10/12/2025, 10:52 PMkapa.ai
10/12/2025, 10:52 PMwal_keep_size, max_slot_wal_keep_size) are too small for your database's write volume. - Connector Bugs: There are also known bugs in recent versions of the Airbyte Postgres connector (starting from v3.6.19 and above) related to how the LSN is saved and how the JDBC driver interacts with Debezium, which can cause this error even if WAL retention is sufficient. See [this issue](https://github.com/airbytehq/airbyte/issues/49802) and related discussions. ### How to avoid this issue 1. Increase WAL Retention and Sync Frequency - Set wal_keep_size and max_slot_wal_keep_size to higher values to ensure WAL segments are retained long enough for Airbyte to read them. - Increase the sync frequency so that Airbyte reads the WAL before it is purged. - Example Postgres settings: sql ALTER SYSTEM SET wal_keep_size = '10GB'; ALTER SYSTEM SET max_slot_wal_keep_size = '10GB'; - See more: [Postgres Troubleshooting Docs](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs) 2. Add a Heartbeat Table or High-Volume Table to the Publication - If your tables have low write volume, WAL segments may not advance as expected. Add a high-transaction table to the publication or use a heartbeat table that Airbyte can write to, and configure the Debezium heartbeat query. This keeps the replication slot active and the LSN advancing. - See step-by-step: [Advanced WAL Disk Consumption and Heartbeat Action Query](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) 3. Connector Version Workarounds - If you are using source-postgres connector v3.6.19 or later and are experiencing this issue, consider downgrading to v3.6.18, as newer versions have a known incompatibility with the latest PgJDBC driver and Debezium ([see issue](https://github.com/airbytehq/airbyte/issues/49802)). Many users report that downgrading resolves the problem. 4. Do Not Remove or Recreate Replication Slots Unnecessarily - If the replication slot is dropped (e.g., due to a failover or manual intervention), Airbyte will be forced to do a full refresh, and you may lose CDC data that occurred during the downtime. There is currently no built-in way in Airbyte to resume from a specific LSN after a slot is recreated ([see discussion](https://github.com/airbytehq/airbyte/issues/29333)). ### Can you fix it without a full refresh? Currently, if the WAL segments required for the saved offset are gone, Airbyte cannot resume incremental sync and must do a full refresh. There is no supported way to manually set the starting LSN in Airbyte to recover only the missing changes. Some users have suggested advanced manual interventions (e.g., manipulating the state in the Airbyte database), but these are not officially supported and can be risky. ### Summary - Increase WAL retention and sync frequency. - Add a heartbeat or high-volume table to the publication. - Consider downgrading the Postgres connector to v3.6.18 if you are on a newer version. - Avoid dropping replication slots. - If the error occurs, a full refresh is currently required. For more details and troubleshooting steps, see the official Airbyte documentation and referenced GitHub issues: - [Postgres Troubleshooting Docs](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs) - [Advanced WAL Disk Consumption and Heartbeat Action Query](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) - [CDC Not Working With Connector Version 3.6.22 (PgJDBC Issue)](https://github.com/airbytehq/airbyte/issues/49802) - [CDC sync is making the confirmed flush LSN to a value > saved state LSN](https://github.com/airbytehq/airbyte/issues/55846) If you need to avoid data loss from deletes or updates that occurred during the downtime, you may need to consider alternative CDC tools or request enhancements from the Airbyte team.Nazar Meliukh
10/13/2025, 12:03 PMkapa.ai
10/13/2025, 12:03 PMkapa.ai
10/13/2025, 12:03 PMNazar Meliukh
10/13/2025, 12:08 PMkapa.ai
10/13/2025, 12:08 PMkapa.ai
10/13/2025, 12:08 PMNazar Meliukh
10/13/2025, 12:12 PMkapa.ai
10/13/2025, 12:12 PMkapa.ai
10/13/2025, 12:13 PMINSERT * FROM table_copy statement, nor do they detail whether such an insert would create new partitions or affect existing ones in a way that could explain the behavior you observed. The documentation does mention that partitioning and clustering are important for performance and that you should align your cursor fields with partition columns for optimal incremental syncs, but it does not address the impact of manual inserts on partitioned tables or how this might interact with Airbyte-managed tables or sync modes. Therefore, I cannot provide a definitive answer to your question based on the available sources[BigQuery source sync modes](https://docs.airbyte.com/integrations/sources/bigquery#supported-sync-modes). If you need a precise answer regarding BigQuery's partitioning behavior with manual inserts, I recommend consulting BigQuery's official documentation or support.Nazar Meliukh
10/13/2025, 12:54 PMkapa.ai
10/13/2025, 12:54 PMkapa.ai
10/13/2025, 12:54 PM+00:00 offset or explicitly mention UTC (for example, in the [airbyte-workload-launcher logs](https://github.com/airbytehq/airbyte/issues/59730)), which suggests that Airbyte logs are typically recorded in UTC time. Still, since there is no official statement in the documentation, I cannot confirm this with complete certainty.