Re: bug in create table with serial - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: bug in create table with serial
Date
Msg-id Pine.LNX.4.33.0210170214200.31940-100000@leary.csoft.net
Whole thread Raw
In response to Re: bug in create table with serial  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs

On Wed, 16 Oct 2002, Tom Lane wrote:

> Cristóvão Dalla Costa <cbraga@bsi.com.br> writes:
> > In PostgreSQL 7.3b2, if I create a table like so:
> > create table customers (id serial primary key);
>
> > The id field will be created of type 32 bit integer, yet the upper limit
> > for the sequence will be relative to a 64 bit integer.
>
> So?
>
> AFAICS, you will get a failure when you reach 2^31 items.  Whether the
> failure is "can't fit the value into int4" or "reached sequence maximum"
> doesn't seem very exciting to me ...
>

Unless of course the column's data type was int8.

Kris Jurka




pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug in create table with serial
Next
From: Brian Macy
Date:
Subject: Pg 7.2.3 int8 value out of range