Re: Recreating unique indices without having dups & downtime.

From: Charles Tassell <ctassell(at)isn(dot)net>
To: Denis Perchine <dyp(at)perchine(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Recreating unique indices without having dups & downtime.
Date: 2000-07-09 22:30:56
Message-ID: 4.3.2.7.2.20000709192830.00d7b800@mailer.isn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You should just be able to create the same index with a different name,
then drop the original. I don't think there are any conflicts with indexes
with the same structure, as long as they have different names. I've never
actually tried this myself though.

If the DTD problem within transactions was fixed in 7.0x, you might even be
able to do this within a transaction. I don't remember hearing that DTD
operations were now reliable within transactions with the 7.0 release
announcement though.

At 11:34 AM 7/9/00, Denis Perchine wrote:
>Hello,
>
>Is it possible to recreate unique indices without having dups (in the case
>of drop/create),
>or downtime (in the case of reindex)? This is real problem.
>
>--
>Sincerely Yours,
>Denis Perchine
>
>----------------------------------
>E-Mail: dyp(at)perchine(dot)com
>HomePage: http://www.perchine.com/dyp/
>FidoNet: 2:5000/120.5
>----------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Bitmead 2000-07-10 00:28:04 Re: [GENERAL] PostgreSQL vs. MySQL
Previous Message Peter Eisentraut 2000-07-09 21:34:46 Re: Is level a reserved keyword? (FYI)