From: Joshua D. Drake <jd@commandprompt.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: 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 15:54:52 -0800
Message-ID: <1166054092.6494.4.camel@localhost.localdomain> (raw)
In-Reply-To: <200612132349.kBDNn7S28850@momjian.us>
References: <200612132349.kBDNn7S28850@momjian.us>
> > 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.
Although a notice that says:
NOTICE: CREATE DUPLICATE INDEX y on test (col1);
Probably isn't out of order.
Sincerely,
Joshua D. Drake
>
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
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: jd@commandprompt.com, 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: <1166054092.6494.4.camel@localhost.localdomain>
References: <200612132349.kBDNn7S28850@momjian.us> <1166054092.6494.4.camel@localhost.localdomain>
* 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