Brandon Schow
09/29/2025, 5:03 PMkapa.ai
09/29/2025, 5:04 PMidle_in_transaction_session_timeout parameter on your Postgres server. This can be done by modifying your Postgres configuration or, if you're using a managed service like AWS Aurora, by updating the relevant parameter group. For AWS Aurora, you may also need to set apg_write_forward.idle_session_timeout to a higher value (e.g., 20 minutes) if you are using write forwarding or similar features. [Vendor-Specific Connector Limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#vendor-specific-connector-limitations) 2. JDBC URL Parameters May Not Override Hardcoded Values: While you can add JDBC URL parameters like idleTimeout or socketTimeout in the Airbyte UI, there are reports that some timeout values are hardcoded in the Postgres connector and may not be overridden by these parameters. This means that increasing the server-side timeout is often more effective than relying on client-side settings. [Forum Discussion](https://discuss.airbyte.io/t/1715) 3. Error Context: The error typically appears at the end of a sync, during connection closure, and is logged as: org.postgresql.util.PSQLException: FATAL: terminating connection due to idle-in-transaction timeout Attempts to increase the timeout via JDBC URL parameters (e.g., idle_in_transaction_session_timeout) have not always been successful, reinforcing the need to adjust the server configuration directly. [Github Issue](https://github.com/airbytehq/airbyte/issues/27715) 4. Database Load and Connection Drops: Heavy load on the source database or reading from a replica that is being updated can also cause connection drops. Monitoring your database's resource usage during syncs may help identify if this is contributing to the problem. [Forum Discussion](https://discuss.airbyte.io/t/1715) Summary: To resolve the "idle-in-transaction timeout" error, increase the idle_in_transaction_session_timeout on your Postgres server. Adjusting JDBC parameters in Airbyte may not be sufficient due to hardcoded values in the connector. If you are using a managed Postgres service, ensure you update the correct parameter group and consider any vendor-specific settings that may apply. If you continue to experience issues after increasing the timeout, please provide more details about your setup and Airbyte/Postgres versions, as there may be connector-specific limitations or bugs involved.