From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | eric(dot)mordant(at)free(dot)fr |
Cc: | "pgsql-docs(at)postgresql(dot)org" <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: 'alter sequence xxx start 200' do nothing |
Date: | 2017-09-05 13:53:02 |
Message-ID: | CAKFQuwZ0NAGEuxs-22ykewV5ju6U7eP09wY+LPtvPq7hGfsNJw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Mon, Sep 4, 2017 at 11:51 PM, <eric(dot)mordant(at)free(dot)fr> wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.5/static/functions-sequence.html
>
> 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) ?
>
>
From the SQL Commands "ALTER SEQUENCE" chapter:
"The optional clause START WITH start changes the recorded start value of
the sequence. *This has no effect on the current sequence value*; it simply
sets the value that future ALTER SEQUENCE RESTART commands will use."
(emphasis
mine)
https://www.postgresql.org/docs/9.5/static/sql-altersequence.html
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2017-09-06 01:39:42 | Re: pg_inherits documentation clarification |
Previous Message | Guillaume Lelarge | 2017-09-05 07:17:00 | Re: 'alter sequence xxx start 200' do nothing |