From: Tim Perdue <perdue@raccoon.com>
To: Remigiusz Sokolowski <rems@gdansk.sprint.pl>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
Date: Tue, 16 Mar 1999 07:06:06 -0600
Message-ID: <00ad01be6fad$c1097380$0b8c5aa5@timnt.weather.net> (raw)
May table is defined to use the sequence, and the table is not trivial to
export and rebuild with the new sequence.
There's got to be some way around this. I'm probably going to have to create
a bogus table using that sequence, then insert 150,000 bogus records to
increment the sequence. Then drop the table.
Tim
-----Original Message-----
From: Remigiusz Sokolowski <rems@gdansk.sprint.pl>
To: Tim Perdue <perdue@raccoon.com>
Cc: pgsql-sql@hub.org <pgsql-sql@hub.org>
Date: Tuesday, March 16, 1999 6:57 AM
Subject: Re: [SQL] Setting Next Value in Sequence
>> 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 * *
>-----------------------------------------------------------------*****-----
-----
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: perdue@raccoon.com, rems@gdansk.sprint.pl, pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
In-Reply-To: <00ad01be6fad$c1097380$0b8c5aa5@timnt.weather.net>
References: <00ad01be6fad$c1097380$0b8c5aa5@timnt.weather.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox