Re: Dumb question about serial's upper limit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dumb question about serial's upper limit
Date: 2005-10-11 02:59:03
Message-ID: 8606.1128999543@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

CSN <cool_screen_name90001(at)yahoo(dot)com> writes:
> If integer's range is -2147483648 to +2147483647, why
> is serial's range only 1 to 2147483647 instead of 1 to
> about 4294967294?

How are you going to stuff 4294967294 into an integer field, which as
you just stated has an upper limit of 2147483647?

If we had an unsigned int type, we could use it for serial and get
that result, but we do not.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terence 2005-10-11 04:29:27 Re: Oracle buys Innobase
Previous Message Premsun Choltanwanich 2005-10-11 02:12:51 Re: How to delete Large Object from Database?