Re: how to alter sequence.

Поиск
Список
Период
Сортировка
От Egon Reetz
Тема Re: how to alter sequence.
Дата
Msg-id 3DEE054A.A157C1B6@usco.de
обсуждение исходный текст
Ответ на how to alter sequence.  (raja kumar thatte <trajakumar@yahoo.com>)
Список pgsql-admin
Drop the sequence and recreate with a min. value greater your last value and
the new max. value.

Egon


raja kumar thatte wrote:

> Hai friends,
> I have a sequence called raj_seq with max value 3000.
> I have a table, with one field haveing
> nextvalu('raj_seq') as default value.;
> now i wanted to increase the max value of the raj_seq
> to 9999999.
> How to do this change?
> If i drop and recreate the raj_seq, then i have to
> recreate the table and all triggers working on that
> table.But it is not an acceptable solution.
> So with out droping raj_seq , how do I solve this
> problem.
> Thanks in advance.
> have a nice time.
> raja
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org


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

Предыдущее
От: "Dan Langille"
Дата:
Сообщение: Re: how to alter sequence.
Следующее
От: Egon Reetz
Дата:
Сообщение: Re: how to alter sequence.