Re: Should duplicate indexes on same column and same - Mailing list pgsql-admin

From Joshua D. Drake
Subject Re: Should duplicate indexes on same column and same
Date
Msg-id 1166054349.6494.6.camel@localhost.localdomain
Whole thread Raw
In response to Re: Should duplicate indexes on same column and same  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
On Wed, 2006-12-13 at 18:55 -0500, Tom Lane wrote:
> "Joshua D. Drake" <jd@commandprompt.com> writes:
> >> 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.
>
> You're omitting the (probably) several pages of C code that would be
> needed to detect whether the index is really a duplicate or not.

Bah, hmmm maybe a perl script in contrib :)

Sincerely,

Joshua D. Drake


>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>
--

      === 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




pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Should duplicate indexes on same column and same
Next
From: "Anton P. Linevich"
Date:
Subject: Slowly Queries