Re: [SQL] Setting Next Value in Sequence

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: "Tim Perdue" <perdue(at)raccoon(dot)com>, <pgsql-sql(at)hub(dot)org>
Subject: Re: [SQL] Setting Next Value in Sequence
Date: 1999-03-16 13:03:44
Message-ID: l03110708b31406f2ab41@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 14:37 +0200 on 16/3/99, Tim Perdue wrote:

> Maybe it's due to sleep deprivation, but this is not working. I'm trying to
> update a seqence to a higher number, and it won't let me.
>
> db_domain=> update seq_mailid set last_value=1375000;
> ERROR: You can't change sequence relation seq_mailid
>
> My sense of humor has totally faded over the last two days, and I would
> appreciate sone input.

Do you (or the user who is trying to do this) own the sequence? Do you have
the right access rights to it?

In any case, I always thought the best is to drop the sequence and create
it with a proper start number.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tim Perdue 1999-03-16 13:06:06 Re: [SQL] Setting Next Value in Sequence
Previous Message Remigiusz Sokolowski 1999-03-16 12:57:57 Re: [SQL] Setting Next Value in Sequence