Re: [SQL] Setting Next Value in Sequence

From: "Tim Perdue" <perdue(at)raccoon(dot)com>
To: "Patrik Kudo" <kudo(at)partitur(dot)se>, <pgsql-sql(at)hub(dot)org>
Subject: Re: [SQL] Setting Next Value in Sequence
Date: 1999-03-16 14:17:55
Message-ID: 00c601be6fb7$c97d1a30$0b8c5aa5@timnt.weather.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

That did the trick. Thanks.

Tim

-----Original Message-----
From: Patrik Kudo <kudo(at)partitur(dot)se>
To: Tim Perdue <perdue(at)raccoon(dot)com>
Cc: pgsql-sql(at)hub(dot)org <pgsql-sql(at)hub(dot)org>
Date: Tuesday, March 16, 1999 7:21 AM
Subject: Re: [SQL] Setting Next Value in Sequence

>Hi,
>
>You can't manipulate the sequence that way. You can do the following
>though:
>
>select setval('seq_mailid', 1375000);
>
>Hope that helps.
>
>Regards,
>Patrik Kudo
>
>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.
>>
>> Tim

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-03-16 20:24:50 Re: [SQL] How match percent sign in SELECT using LIKE?
Previous Message Remigiusz Sokolowski 1999-03-16 13:25:20 Re: [SQL] Setting Next Value in Sequence