From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | eric(dot)mordant(at)free(dot)fr |
Cc: | "pgsql-docs(at)postgresql org" <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: 'alter sequence xxx start 200' do nothing |
Date: | 2017-09-05 07:17:00 |
Message-ID: | CAECtzeWqLg7D9bp7HrXUknzMJ1Sots3LoKmrzsZbUSZtzfO6+g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
2017-09-05 8:51 GMT+02:00 <eric(dot)mordant(at)free(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2017-09-05 13:53:02 | Re: 'alter sequence xxx start 200' do nothing |
Previous Message | eric.mordant | 2017-09-05 06:51:25 | 'alter sequence xxx start 200' do nothing |