Re: Article on MySQL vs. Postgres
Hannu Krosing <hannu@tm.ee>
From: Hannu Krosing <hannu@tm.ee>
To: The Hermit Hacker <scrappy@hub.org>
Cc: Tim Perdue <tperdue@valinux.com>, Benjamin Adida <ben@mit.edu>, pgsql-hackers@hub.org
Date: 2000-07-05T08:39:39Z
Lists: pgsql-hackers
The Hermit Hacker wrote: > > On Tue, 4 Jul 2000, Tim Perdue wrote: > > > Further, I have had situations where postgres actually had DUPLICATE > > ids in a primary key field, probably due to some abort or other nasty > > situation in the middle of a commit. How did I recover from That? > > Well, I had to run a count(*) next to each ID and select out the rows > > where there was more than one of each "unique" id, then reinsert those > > rows and drop and rebuild the indexes and reset the sequences. > > Odd, were you using transactions here, or transactionless? Actully I think I remember a recent bug report about some condition that failed the uniqueness check when inside a transaction ;( I think the report came with a fix ;) ------------ Hannu