From: Paul Thomas <paul@tmsl.demon.co.uk>
To: Jan Heise <jan@janheise.de>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: int4/int8 problem with jdbc was Re: "Fix" for INT8 literals
Date: Wed, 2 Jun 2004 14:27:21 +0100
Message-ID: <20040602142721.A432@bacon> (raw)
In-Reply-To: <9D72D268-B48A-11D8-86A9-000393DC6FC0@janheise.de>
References: <A8B510A0-B47E-11D8-86A9-000393DC6FC0@janheise.de>
<40BDB6F7.8070903@opencloud.com>
<9D72D268-B48A-11D8-86A9-000393DC6FC0@janheise.de>
On 02/06/2004 12:47 Jan Heise wrote:
> oliver, thanks for your reply.
>
> the db in question is a 7.4 site in production. upgrading to another
> version is not really what i'd like
> to do. the explicit cast is problematic too, i'm using hibernate as my
> orm. unless i missed something
> in the docs, i can not add the cast to the config - but this is sth. for
> the hibernate forums.
>
> the problem is a special case where i have to load objects from the
> table in question by the pk
> (details would be quite long, but i can not change the table-structure
> at this time). table size is
> approx. 120 million rows and approx 2 million rows have a pk < INT4_MAX.
> so i think my only
> option is dropping the foreign keys, making the pks and all references
> bigger than INT4_MAX
> and recreate the fk.
>
> jan
There's an unofficial patch:
http://archives.postgresql.org/pgsql-jdbc/2003-09/msg00143.php
which might solve your problems for now. IIRC, there's a server-side patch
been submitted which will solve the int4/int8 issue and may be 7.5.
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
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: paul@tmsl.demon.co.uk, jan@janheise.de, oliver@opencloud.com
Subject: Re: int4/int8 problem with jdbc was Re: "Fix" for INT8 literals
In-Reply-To: <20040602142721.A432@bacon>
References: <A8B510A0-B47E-11D8-86A9-000393DC6FC0@janheise.de> <40BDB6F7.8070903@opencloud.com> <9D72D268-B48A-11D8-86A9-000393DC6FC0@janheise.de> <20040602142721.A432@bacon>
* 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