Too much data received?

From: Steve Wampler <swampler(at)noao(dot)edu>
To: postgres-jdbc <pgsql-jdbc(at)postgresql(dot)org>, postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Too much data received?
Date: 2001-07-06 16:29:57
Message-ID: 3B45E785.6CAB7273@noao.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-jdbc

PG 7.1.2, jdbc7.1-1.2.jar, RH Linux 6.2 (with upgrade to kernel 2.4.5 [and
library upgrades]):

I've got a table with 5 columns, two of which are type 'text' and intended to
hold XMLized java objects (constructed using the JSX package). However, the
XML tends to be pretty large (and I'll need *much* larger later).

When attempting to insert a row through jdbc, I get an exception which (I assume)
results from the size of the XML:

Too much data was received.
at org.postgresql.PG_Stream.ReceiveString(PG_Stream.java:306)
at org.postgresql.Connection.ExecSQL(Connection.java:532)
at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
at org.postgresql.jdbc2.Statement.executeUpdate(Statement.java:78)
at OCS.database.DbServer.execute(DbServer.java:271)

I seem to remember discussion on a limit in the jdbc driver that might
be causing this, but couldn't find it in the psql-jdbc mail archives.

Am I likely correct in this being the problem? Is there a fix in the
works?

Alternatively (and the reason this is cross posted to pgsql-general):

Is there a better way to store these large XML strings than as a text type?
If so, how? Ultimately, they may be many thousands of bytes long.

Thanks!

--
Steve Wampler- SOLIS Project, National Solar Observatory
swampler(at)noao(dot)edu

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2001-07-06 16:42:23 Re: Vacuum and Transactions
Previous Message Peter Eisentraut 2001-07-06 16:15:47 Re: HUPing a database

Browse pgsql-interfaces by date

  From Date Subject
Next Message NTB Technical Support 2001-07-08 09:43:41 Re: ADO and ODBC: More
Previous Message Christof Petig 2001-07-06 08:09:36 Re: libpq and _pgmodule under WinNT without cygwin

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joseph Shraibman 2001-07-06 20:31:27 Re: Patch to remove connection hook and JDK 1.3 dependencies
Previous Message Ola Sundell 2001-07-06 10:11:37 Re: Metadata for tables, schema, and numeric