Re: sequence skips 30 values, how?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: DelGurth <delgurth(at)gmail(dot)com>
Cc: "PostgreSQL List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: sequence skips 30 values, how?
Date: 2007-01-31 15:50:22
Message-ID: 26446.1170258622@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DelGurth <delgurth(at)gmail(dot)com> writes:
> Slightly OT. That documentation page of postgresql contains an invalid
> example. Not sure if I should report it in here, but well, there you
> go.

> CREATE SEQUENCE serial START 101;
> SELECT nextval('serial');
> nextval
> ---------
> 114

> So you start at 101 and get 114, how nice ;-)

I think the assumption is that some time has passed (and some use of the
sequence) in between those steps.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-01-31 15:53:23 Re: sequence skips 30 values, how?
Previous Message Alexandre Leclerc 2007-01-31 15:46:17 Ordering problem with varchar (DESC)