Re: [GENERAL] Buggered Sequence

Поиск
Список
Период
Сортировка
От Jesse Kipp
Тема Re: [GENERAL] Buggered Sequence
Дата
Msg-id 38498310.7AE20E1C@revbox.com
обсуждение исходный текст
Ответ на Buggered Sequence  ("Jason C. Wells" <jcwells@u.washington.edu>)
Ответы Re: [GENERAL] Buggered Sequence
Список pgsql-general
Can you do:

drop sequence people_id_seq
create sequence people_id_seq start 44

?

jesse kipp



"Jason C. Wells" wrote:
>
> sequence_name|last_value|increment_by| max_value|min_value|cache_value|is_cycled|is_called
> -------------+----------+------------+----------+---------+-----------+---------+---------
> people_id_seq|         4|           1|2147483647|        1|          1|f        |t
> (1 row)
>
> After I screwed up a pgdump and restore I finally got my data back into
> the database. I have one little thing to fix. My sequence should be at
> last_value='44'.
>
> I tried to use update set last_value='44' but I wasn't allowed to change
> the sequence as jcwells or as the pgsql superuser. How can I fix my
> sequence?
>
> Thank You,      | http://students.washington.edu/jcwells/
> Jason Wells
>
> ************

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

Предыдущее
От: "Jason C. Wells"
Дата:
Сообщение: Buggered Sequence
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: [GENERAL] Buggered Sequence