Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X9q26-000741-B5 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2014 06:28:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X9q25-0006Zi-QK for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2014 06:28:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X9q24-0006Y9-Oj for pgsql-bugs@postgresql.org; Wed, 23 Jul 2014 06:28:08 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X9q1z-0008Jz-Lv for pgsql-bugs@postgresql.org; Wed, 23 Jul 2014 06:28:06 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s6N6RtZ10553 for ; Tue, 22 Jul 2014 23:27:55 -0700 Message-ID: <53CF55E6.30502@hogranch.com> Date: Tue, 22 Jul 2014 23:27:50 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #11022: \copy report negative row number References: <20140723051559.27769.78943@wrigleys.postgresql.org> <53CF48D8.9090509@hogranch.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080202040405050308090308" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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 This is a multi-part message in MIME format. --------------080202040405050308090308 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/22/2014 11:25 PM, Jov wrote: > I think so. > 32 bit counter can count ~ 4 billion rows,this file has 6 billion rows. a 32 bit integer counts to ~2 billion then wraps around to -2 billion. (2^31-1 and -2^31 to be precise) -- john r pierce 37N 122W somewhere on the middle of the left coast --------------080202040405050308090308 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 7/22/2014 11:25 PM, Jov wrote:
I think so.
32 bit counter can count ~ 4 billion rows,this file has 6 billion rows.

a 32 bit integer counts to ~2 billion then wraps around to -2 billion.  (2^31-1 and -2^31 to be precise)



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast
--------------080202040405050308090308--