# Logstash JDBC input plugin: Java::OrgPostgresqlUtil::PSQLException: An I/O error occurred while sending to the backend

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-input-plugin-java-an-i-o-error-occurred-while-sending-to-the-backend/321900>\
**Category:** Logstash\
**Created:** [December 23, 2022, 10:12am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-plugin-java-an-i-o-error-occurred-while-sending-to-the-backend/321900 "2022-12-23T10:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thijsvdp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thijsvdp/32/146696_2.png) [@Thijsvdp](https://discuss.elastic.co/u/Thijsvdp)\
**Post date:** [December 23, 2022, 10:12am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-plugin-java-an-i-o-error-occurred-while-sending-to-the-backend/321900/1 "2022-12-23T10:12:05Z")

</div>

Hi all,

I have created a Logstash pipeline which aims to sync an Elasticsearch index with a Postgres database. Unfortunately, there is a query that does not perform well and takes quite some time. Once every now and then I receive the following error message:

```auto
Exception when executing JDBC query {:exception=>Sequel::DatabaseDisconnectError, :message=>"Java::OrgPostgresqlUtil::PSQLException: An I/O error occurred while sending to the backend.", :cause=>"#<Java::OrgPostgresqlUtil::PSQLException: An I/O error occurred while sending to the backend.>"}

```

I am not sure what is causing it, how to debug it, and how to resolve it. I was thinking if it may have something to do with timeouts, but I would expect different error messages then.

Could anyone help me? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2023, 10:12am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-plugin-java-an-i-o-error-occurred-while-sending-to-the-backend/321900/2 "2023-01-20T10:12:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
