Re: Sequence Start number not dumped correctly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Reto Stamm <reto(at)retostamm(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Sequence Start number not dumped correctly
Date: 2002-11-07 17:14:15
Message-ID: 22889.1036689255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Reto Stamm <reto(at)retostamm(dot)com> writes:
> When I have a sequence like this:
> CREATE SEQUENCE "test_id_seq" start -32768 increment 1 maxvalue 32767 minvalue
> -32768 cache 1;

> it will show up in schema.txt like this:

> CREATE SEQUENCE "test_id_seq" start 1 increment 1 maxvalue 32767 minvalue -32768
> cache 1;

How old is your Postgres? It works here.

But note that there is probably also a select setval() for the sequence,
which is what *really* determines the starting value.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-11-07 17:57:31 Re: Problem with a sequence being acted on by an on insert rule.
Previous Message Stephan Szabo 2002-11-07 16:50:32 Re: Problem with a sequence being acted on by an on insert