From: Tom Lane <tgl@sss.pgh.pa.us>
To: zelaine@amazon.com
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
Date: Fri, 21 Dec 2012 11:47:38 -0500
Message-ID: <17929.1356108458@sss.pgh.pa.us> (raw)
In-Reply-To: <E1Tlli5-0007tR-HO@wrigleys.postgresql.org>
References: <E1Tlli5-0007tR-HO@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
zelaine@amazon.com writes:
> The following bug has been logged on the website:
> Bug reference: 7766
> Logged by: Zelaine Fong
> Email address: zelaine@amazon.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-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, zelaine@amazon.com, pgsql-bugs@postgresql.org
Subject: Re: BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception
In-Reply-To: <17929.1356108458@sss.pgh.pa.us>
References: <E1Tlli5-0007tR-HO@wrigleys.postgresql.org> <17929.1356108458@sss.pgh.pa.us>
* 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