Surendra Longre
10/29/2025, 12:32 PM@kapa.ai Failure in source: Saved offset is before replication slot's confirmed lsn. Please reset the connection, and then increase WAL retention and/or increase sync frequency to prevent this from happening in the future. See https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs for more details.
for this issue what's the best method to resolve this errorkapa.ai
10/29/2025, 12:33 PMwal_keep_size and/or max_slot_wal_keep_size parameters in your Postgres configuration to ensure WAL files are retained long enough for Airbyte to read them. - Example: sql ALTER SYSTEM SET wal_keep_size = '10GB'; ALTER SYSTEM SET max_slot_wal_keep_size = '10GB'; - This ensures WAL files are not purged before Airbyte can process them, especially important for infrequent syncs or large data volumes. 2. Increase Sync Frequency: - Run Airbyte syncs more frequently so that WAL segments are processed before they are purged by Postgres. 3. Add High-Volume Tables to the Publication (for low-traffic databases): - If your database has low transaction volume, WAL segments may not advance as expected. Adding a high-transaction table to the publication can help advance the LSN and prevent WAL buildup or purging issues. You do not need to sync this table, just include it in the publication. - Example: sql ALTER PUBLICATION <publicationName> ADD TABLE <high_volume_table>; - Alternatively, use a heartbeat table and configure Airbyte to periodically write to it, which will also advance the LSN. See the [heartbeat action query documentation](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) for details. 4. Reset the Connection: - If the error persists, reset the Airbyte connection. This will trigger a full refresh and reinitialize the replication slot and state. References: - [Troubleshooting: Under CDC incremental mode, there are still full refresh syncs](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) - [Github Issue: "Saved offset is before replication slot's confirmed LSN" error during Postgres to Kafka sync with CDC in Airbyte](https://github.com/airbytehq/airbyte/issues/46571) If you continue to see this error after making these changes, review your WAL retention settings and sync frequency, and consider implementing a heartbeat mechanism if your database has low write activity.Surendra Longre
10/29/2025, 12:33 PMkapa.ai
10/29/2025, 12:33 PMkapa.ai
10/29/2025, 12:38 PM