Thiago Azevedo
10/17/2023, 6:07 PMkapa.ai
10/17/2023, 6:08 PMpg_wal directory, Postgres will purge or archive the WAL files. To prevent this scenario, you can: - Sync the data source more frequently. The downside is that more computation resources will be consumed, leading to a higher Airbyte bill. - Set a higher wal_keep_size. If no unit is provided, it is in megabytes, and the default is 0. The downside of this approach is that more disk space will be needed. You can see detailed documentation [here](https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-WAL-KEEP-SIZE). Another scenario is when the Postgres connector successfully reads the WAL and acknowledges it to Postgres, but the destination connector fails to consume the data, the Postgres connector will try to read the same WAL again, which may have been removed by Postgres, since the WAL record is already acknowledged. This scenario is rare, because it can happen, and currently there is no way to prevent it. The correct behavior is to perform a full refresh. In some cases, users have reported that adjusting the buffer parameter in the destination (e.g., Snowflake) to a lower value (e.g., 50) can help manage the ingestion of WAL and prevent it from becoming too large. However, this may not be applicable to all destinations and scenarios. For more details, you can refer to the [Airbyte documentation](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting) and [Airbyte forum](https://discuss.airbyte.io/t/3263) for similar issues and solutions.Marcos Marx (Airbyte)
10/17/2023, 6:17 PMAkash Kulkarni
10/18/2023, 4:42 PMThiago Azevedo
10/20/2023, 10:53 AM