From: Bruce Momjian <bruce@momjian.us>
To: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Lista Postgres <pgsql-admin@postgresql.org>
Subject: Re: Should duplicate indexes on same column and same
Date: Wed, 13 Dec 2006 18:49:07 -0500 (EST)
Message-ID: <200612132349.kBDNn7S28850@momjian.us> (raw)
In-Reply-To: <a97c77030612091117j40f9fdbejcdbb85e9aa354b8d@mail.gmail.com>
Rajesh Kumar Mallah wrote:
> On 12/9/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > "Rajesh Kumar Mallah" <mallah.rajesh@gmail.com> writes:
> > > Suppose an index get corrupted. And you need create a new index
> > > with exact specs and then drop the old index. Is it better to
> > > have a performing corrupted index or not have it at all and temporarily
> > > suffer some performance degradation ?
> >
> > The case that was being discussed just a day or two ago was where you
> > wanted to do the equivalent of REINDEX because of index bloat, not any
> > functional "corruption". In that case it's perfectly clear that
> > temporarily not having the index isn't acceptable ... especially if
> > it's enforcing a unique constraint.
>
> Sorry ,
> i guess i digressed .
> Lemme put the question once again.
>
> psql> CREATE INDEX x on test (col1);
> psql> CREATE INDEX y on test (col1);
>
> What is (are) the downsides of disallowing the
> second index. which is *exactly* same as
> previous?
The cost of preventing every stupid database use is too high.
--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
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-admin@postgresql.org
Cc: bruce@momjian.us, mallah.rajesh@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Should duplicate indexes on same column and same
In-Reply-To: <200612132349.kBDNn7S28850@momjian.us>
References: <a97c77030612091117j40f9fdbejcdbb85e9aa354b8d@mail.gmail.com> <200612132349.kBDNn7S28850@momjian.us>
* 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