Re: [DOCS] 'alter sequence xxx start 200' do nothing

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: [DOCS] 'alter sequence xxx start 200' do nothing
Дата
Msg-id CAECtzeWqLg7D9bp7HrXUknzMJ1Sots3LoKmrzsZbUSZtzfO6+g@mail.gmail.com
обсуждение исходный текст
Ответ на [DOCS] 'alter sequence xxx start 200' do nothing  (eric.mordant@free.fr)
Список pgsql-docs
2017-09-05 8:51 GMT+02:00 <eric.mordant@free.fr>:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.5/static/functions-sequence.html
Description:

Hello,

According to the doc, with a sequence public.xxx working well, i tried:

Alter sequence public.xxx start 200;

and also:
Alter sequence public.xxx start with 200

It has no effect, without error message, but setval(200) work fine

Misunderstand the doc or is it a bug (PostgreSql 9.6 x86 on localhost) ?


They don't do the same thing. ALTER SEQUENCE ... START ... sets the start value, while setval sets the current value.


--
Guillaume.

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

Предыдущее
От: eric.mordant@free.fr
Дата:
Сообщение: [DOCS] 'alter sequence xxx start 200' do nothing
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [DOCS] 'alter sequence xxx start 200' do nothing