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:23:52 |
Message-ID: | l03110709b3140b6fb964@[147.233.159.109] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Remigiusz Sokolowski | 1999-03-16 13:25:20 | Re: [SQL] Setting Next Value in Sequence |
Previous Message | Patrik Kudo | 1999-03-16 13:22:03 | Re: [SQL] Setting Next Value in Sequence |