<@U04S8PLJWMT> i am trying to build connections be...
# ask-ai
u
@kapa.ai i am trying to build connections between postgres to postgres , when the sync is completed i get 0 bytes of data sync
k
When syncing from Postgres to Postgres and getting 0 bytes of data synced, there are several possible causes and troubleshooting steps based on the knowledge sources: 1. Connection or Configuration Issues - Ensure that both the source and destination configurations are correct (host, port, user, password, database name) and that the source database actually contains data in the tables being synced. - If you are using a custom Postgres source or have overridden methods, ensure your customizations are not interfering with data extraction. Connection errors (e.g., HikariPool timeouts) can cause the sync to emit 0 records but still show as "succeeded" in Airbyte, as seen in the logs from a similar issue. Check for connection errors in your logs, especially if using SSH or custom connectors [Sync shows succeeded after 0 records emitted](https://discuss.airbyte.io/t/1112). 2. Sync Mode and State Issues - If the initial sync works but subsequent syncs return 0 records, it could be related to how Airbyte tracks state or incremental changes. For example, if the state is not updated correctly or the cursor field is not set properly, Airbyte may not detect new or changed records [First sync successful, next syncs 0 bytes no records](https://discuss.airbyte.io/t/3135). - In some cases, every other sync may pull 0 bytes due to issues with how Airbyte tracks the file node or state for the table, especially when using Full Refresh | Overwrite mode [[source-postgres] Full Refresh | Overwrite only works every other sync on most connections](https://github.com/airbytehq/airbyte/issues/42468). 3. CDC (Change Data Capture) and WAL Issues - If you are using CDC, ensure that the WAL (Write-Ahead Log) files required for incremental syncs are not being purged before Airbyte can read them. If WAL files are missing, Airbyte may trigger a full refresh or fail to sync new data [Troubleshooting Postgres Sources](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#troubleshooting). - Make sure the
wal_keep_size
is set high enough and that syncs are frequent enough to avoid WAL purging. 4. Temporary File and Disk Access Issues - The Airbyte Postgres destination connector relies on temporary file storage. If the destination Postgres instance does not have access to the
/tmp
directory, data loading will fail [Troubleshooting Postgres Destinations](https://docs.airbyte.com/integrations/destinations/postgres/postgres-troubleshooting#connector-limitations). 5. Postgres as a Destination Limitation - Postgres is not recommended as a destination for large data volumes. If you are syncing large datasets, performance or resource issues may cause syncs to fail or emit no data [Troubleshooting Postgres Destinations](https://docs.airbyte.com/integrations/destinations/postgres/postgres-troubleshooting#connector-limitations). What to check next: - Review your Airbyte logs for connection errors or state issues. - Double-check your sync mode and cursor field settings. - If using CDC, verify WAL retention and slot configuration. - Ensure the destination Postgres instance has access to
/tmp
and sufficient resources. - Try running a full refresh sync to see if data is transferred. If you provide specific logs or error messages, I can help further narrow down the issue.