Re: Serials.

Поиск
Список
Период
Сортировка
От Grant
Тема Re: Serials.
Дата
Msg-id Pine.LNX.4.21.0103250749520.26144-100000@webster.conprojan.com.au
обсуждение исходный текст
Ответ на Re: Serials.  (darcy@druid.net (D'Arcy J.M. Cain))
Ответы Re: Serials.  (Dan Lyke <danlyke@flutterby.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: all views in database broken at once
Следующее
От: Andrew Perrin
Дата:
Сообщение: Re: all views in database broken at once