Re: Sequence Start number not dumped correctly

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sequence Start number not dumped correctly
Дата
Msg-id 22889.1036689255@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sequence Start number not dumped correctly  (Reto Stamm <reto@retostamm.com>)
Ответы Re: Sequence Start number not dumped correctly  (Reto Stamm <reto@retostamm.com>)
Список pgsql-bugs
Reto Stamm <reto@retostamm.com> writes:
> When I have a sequence like this:
> CREATE SEQUENCE "test_id_seq" start -32768 increment 1 maxvalue 32767 minvalue
> -32768 cache 1;

> it will show up in schema.txt like this:

> CREATE SEQUENCE "test_id_seq" start 1 increment 1 maxvalue 32767 minvalue -32768
> cache 1;

How old is your Postgres?  It works here.

But note that there is probably also a select setval() for the sequence,
which is what *really* determines the starting value.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem with a sequence being acted on by an on insert
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with a sequence being acted on by an on insert rule.