Re: change max_value in sequence

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: change max_value in sequence
Дата
Msg-id dcc563d10809050652n5a7a8dfdi6b15aad045616d09@mail.gmail.com
обсуждение исходный текст
Ответ на change max_value in sequence  ("Claus Guttesen" <kometen@gmail.com>)
Список pgsql-admin
On Fri, Sep 5, 2008 at 6:58 AM, Claus Guttesen <kometen@gmail.com> wrote:
> Hi.
>
> I have a table with a serial field defined with an older version of
> postgresql (ver. 7). Back then max_value was 2147483647:
>
> select max_value from my_bid_seq ;
> max_value
> ------------
> 2147483647
>
> How can I increase it? By updating the max_value-field? This is an
> older thread and may have changed:
> http://archives.postgresql.org/pgsql-admin/2002-12/msg00033.php

That's the max for a regular int / serial type.  You'll need to change
it to bigserial / bigint which is 64 bits/

>
> I'm running postgresql 8.3.1.

Please update to 8.3.3

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Claus Guttesen"
Дата:
Сообщение: change max_value in sequence
Следующее
От: "slamp slamp"
Дата:
Сообщение: Re: rpm install not recognized by yum.