Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART
Date
Msg-id 29706.1282857791@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5629: ALTER SEQUENCE foo START execute a RESTART  ("Alexsander" <alexsander.rosa@gmail.com>)
Responses Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART
List pgsql-bugs
"Alexsander" <alexsander.rosa@gmail.com> writes:
> CREATE SEQUENCE foo;
> SELECT setval('foo',12345);
> ALTER SEQUENCE foo START WITH 10; -- can't change value
> SELECT nextval('foo'); -- it's 10 instead of 12346

> Apparently START is executing a RESTART.

Yup.  That's what it's defined to do, pre-8.4.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Alexsander"
Date:
Subject: BUG #5629: ALTER SEQUENCE foo START execute a RESTART
Next
From: Alexsander Rosa
Date:
Subject: Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART