Re: [SQL] Setting Next Value in Sequence - Mailing list pgsql-sql

From Remigiusz Sokolowski
Subject Re: [SQL] Setting Next Value in Sequence
Date
Msg-id Pine.GS4.4.02A.9903161355510.25425-100000@netra.gdansk.sprint.pl
Whole thread Raw
In response to Setting Next Value in Sequence  ("Tim Perdue" <perdue@raccoon.com>)
List pgsql-sql
> 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.

So, may be just drop sequence and create new one with start 1375000.
    Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski      e-mail: rems@gdansk.sprint.pl           * *
-----------------------------------------------------------------*****----------


pgsql-sql by date:

Previous
From: "Tim Perdue"
Date:
Subject: Setting Next Value in Sequence
Next
From: Herouth Maoz
Date:
Subject: Re: [SQL] Setting Next Value in Sequence