Re: [BUGS] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: zelaine(at)amazon(dot)com, pgsql-bugs(at)postgresql(dot)org, List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
Date: 2012-12-21 18:55:43
Message-ID: CADK3HH+JgxrrT7K7tbyHLT0pqqnmqQNoPC6keHV3uChRq1ah4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

Thanks Tom.

So an unsigned long won't fit inside a java long either, but hopefully it
will never be necessary. That would be a huge number of changes.

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On Fri, Dec 21, 2012 at 11:47 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> zelaine(at)amazon(dot)com writes:
> > The following bug has been logged on the website:
> > Bug reference: 7766
> > Logged by: Zelaine Fong
> > Email address: zelaine(at)amazon(dot)com
> > PostgreSQL version: 8.4.0
> > Operating system: Linux
> > Description:
>
> > The updateCount field in the ResultHandler interface in Java is defined
> as
> > an int rather than long. Therefore, if you prepare and execute an
> update,
> > delete, or insert statement that affects more than 2^32 rows, you will
> get
> > the following exception:
>
> > Unable to interpret the update count in command completion tag
>
> Forwarding this to pgsql-jdbc list. FWIW, guys, the backend currently
> thinks that execution counts are unsigned ints. So I surmise that the
> problematic update count was actually between 2^31 and 2^32. We might
> get around to changing it to unsigned long someday ...
>
> regards, tom lane
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message ta 2012-12-21 19:10:42 "text to text" operator redefinition ignored
Previous Message me 2012-12-21 17:08:27 BUG #7768: Support for TCP Keepalive parameters

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2012-12-21 20:17:06 Re: [JDBC] BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
Previous Message Tom Lane 2012-12-21 16:47:38 Re: BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception