From: Kris Jurka <books@ejurka.com>
To: Amish Munshi <amish_munshi@fastmail.fm>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bpchat cannot exceed 10485760
Date: Thu, 8 Jul 2004 02:06:30 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407080158470.28674@leary.csoft.net> (raw)
In-Reply-To: <1089269214.5443.199950926@webmail.messagingengine.com>
References: <1089269214.5443.199950926@webmail.messagingengine.com>
On Thu, 8 Jul 2004, Amish Munshi wrote:
> Greetings,
>
> I am migrating a database from HSQLDB to Postgresql. I am using the
> HSQL Database manager to transfer my data from HSQL to postgres and
> found a hurdle.
> The exact error message is as follows.
>
> org.hsqldb.util.DataAccessPointException: ERROR: length for type bpchar
> cannot exceed 10485760
>
It is trying to create a table with a column type of char(N) with a very
large value of N, such as "CREATE TABLE tab (a char(100000000000));".
There doesn't seem to be a point in exactly specifying a size of greater
than 10M. The question is does your source database have a column defined
in this way? If not then perhaps the HSQL JDBC driver has a bug where it
doesn't return the correct length restriction for a char column. If you
do have a column defined this way you may be in trouble. Since char(N)
pads the data with spaces you cannot simply substitute and unbounded
character type (like "text").
Kris Jurka
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: books@ejurka.com, amish_munshi@fastmail.fm
Subject: Re: bpchat cannot exceed 10485760
In-Reply-To: <Pine.BSO.4.56.0407080158470.28674@leary.csoft.net>
References: <1089269214.5443.199950926@webmail.messagingengine.com> <Pine.BSO.4.56.0407080158470.28674@leary.csoft.net>
* 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