Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm5lJ-0006Hq-2i for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Dec 2012 16:47:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tm5lH-0004BY-Vm for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Dec 2012 16:47:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm5l8-00044M-UR; Fri, 21 Dec 2012 16:47:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm5l6-0006qB-Qn; Fri, 21 Dec 2012 16:47:42 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBLGlccd017930; Fri, 21 Dec 2012 11:47:38 -0500 (EST) From: Tom Lane To: zelaine@amazon.com cc: pgsql-bugs@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: BUG #7766: Running a DML statement that affects more than 4 billion rows results in an exception In-reply-to: References: Comments: In-reply-to zelaine@amazon.com message dated "Thu, 20 Dec 2012 19:23:13 +0000" Date: Fri, 21 Dec 2012 11:47:38 -0500 Message-ID: <17929.1356108458@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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