From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Tim Perdue <perdue@raccoon.com>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
Date: Tue, 16 Mar 1999 15:23:52 +0200
Message-ID: <l03110709b3140b6fb964@[147.233.159.109]> (raw)
In-Reply-To: <00ad01be6fad$c1097380$0b8c5aa5@timnt.weather.net>
At 15:06 +0200 on 16/3/99, Tim Perdue wrote:
> 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.
What? You just need to drop and create a sequence with the same name. At
least it works for me (though I noticed that unprivileged users have
problems creating tables without having the sequences created first, which
IMHO is a bug. But I don't think it applies to already-created tables).
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
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: herouth@oumail.openu.ac.il, perdue@raccoon.com, pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
In-Reply-To: <l03110709b3140b6fb964@[147.233.159.109]>
References: <00ad01be6fad$c1097380$0b8c5aa5@timnt.weather.net> <l03110709b3140b6fb964@[147.233.159.109]>
* 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