Re: Serials. - Mailing list pgsql-sql

From Grant
Subject Re: Serials.
Date
Msg-id Pine.LNX.4.21.0103250749520.26144-100000@webster.conprojan.com.au
Whole thread Raw
In response to Re: Serials.  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: Serials.
List pgsql-sql
> > (1) Why is a sequence limited to 2147483647, it seems very small?
> 
> Yikes!  What are you counting?  :-)

I have a message board. Where users can send each other messages. I doubt I 
will ever get 2147483647 messages, but I want to make sure I never get an error
where the message isn't sent. I guess the best option is to create a function
that changes all the ids to the lowest values possible and then set the
sequence to the maximum value + 1.

Thanks everyone for your help.



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: all views in database broken at once
Next
From: Andrew Perrin
Date:
Subject: Re: all views in database broken at once