From: Craig Ringer <craig@postnewspapers.com.au>
To: Hernan Danielan <hernandanielan@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error in connector or driver with big bytea
Date: Sun, 23 May 2010 13:13:22 +0800
Message-ID: <4BF8B972.80803@postnewspapers.com.au> (raw)
In-Reply-To: <AANLkTikZu7z5Ljb51rCaxZXWW_z_tI8q-8rsNiGK4NKs@mail.gmail.com>
References: <AANLkTikZu7z5Ljb51rCaxZXWW_z_tI8q-8rsNiGK4NKs@mail.gmail.com>
On 23/05/10 03:03, Hernan Danielan wrote:
> Hello! I have a problem for several days now. I am trying to insert a
> record with a file of 1.4MB in a postgre database with a JDBC connector.
> When i insert files around 100KB it works great. However it does not
> work with greater ones. I use both method bytea and oid but both of them
> give me the same error in the database log:
>
>
> 2010-05-22 15:30:44 ART LOCATION: exec_bind_message, postgres.c:1769
> 2010-05-22 15:30:44 ART LOG: 08006: could not send data to client:
> Connection reset by peer
> 2010-05-22 15:30:44 ART LOCATION: internal_flush, pqcomm.c:1108
> .....
> 2010-05-22 15:30:45 ART LOCATION: exec_execute_message, postgres.c:1988
> 2010-05-22 15:30:46 ART LOG: 08006: could not send data to client:
> Broken pipe
> 2010-05-22 15:30:46 ART LOCATION: internal_flush, pqcomm.c:1108
> ....
> 2010-05-22 15:35:10 ART LOG: 00000: aborting any active transactions
>
>
> With the following code
Can you supply a *fully* stand-alone test case? And make sure it still
encounters the problem on your server?
Also, in your test case, when the JDBC driver throws, don't catch the
exception. Let it propagate out to terminate the program so that the JRE
prints detailed exception info on all nested exceptions.
--
Craig Ringer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: craig@postnewspapers.com.au, hernandanielan@gmail.com
Subject: Re: Error in connector or driver with big bytea
In-Reply-To: <4BF8B972.80803@postnewspapers.com.au>
References: <AANLkTikZu7z5Ljb51rCaxZXWW_z_tI8q-8rsNiGK4NKs@mail.gmail.com> <4BF8B972.80803@postnewspapers.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox