pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11022: \copy report negative row number
Date: Tue, 22 Jul 2014 23:27:50 -0700
Message-ID: <53CF55E6.30502@hogranch.com> (raw)
In-Reply-To: <CADyrUxMH50XiOLt1WREM6K3Ak6doFBwARfmKJtQKO5SSRuLjTw@mail.gmail.com>
References: <20140723051559.27769.78943@wrigleys.postgresql.org>
	<53CF48D8.9090509@hogranch.com>
	<CADyrUxMH50XiOLt1WREM6K3Ak6doFBwARfmKJtQKO5SSRuLjTw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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

view thread (4+ messages)

Message-ID: <53CF55E6.30502@hogranch.com>
Permalink:  ../53CF55E6.30502@hogranch.com/
Also on:    postgresql.org/message-id/53CF55E6.30502@hogranch.com

 · 

reply

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-bugs@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: BUG #11022: \copy report negative row number
  In-Reply-To: <53CF55E6.30502@hogranch.com>
  References: <20140723051559.27769.78943@wrigleys.postgresql.org> <53CF48D8.9090509@hogranch.com> <CADyrUxMH50XiOLt1WREM6K3Ak6doFBwARfmKJtQKO5SSRuLjTw@mail.gmail.com> <53CF55E6.30502@hogranch.com>

* 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