pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Cc: Lista Postgres <pgsql-admin@postgresql.org>
Subject: Re: Should duplicate indexes on same column and same
Date: Wed, 13 Dec 2006 15:59:09 -0800
Message-ID: <1166054349.6494.6.camel@localhost.localdomain> (raw)
In-Reply-To: <13302.1166054153@sss.pgh.pa.us>
References: <200612132349.kBDNn7S28850@momjian.us>
	<1166054092.6494.4.camel@localhost.localdomain>
	<13302.1166054153@sss.pgh.pa.us>

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






view thread (13+ messages)  latest in thread

Message-ID: <1166054349.6494.6.camel@localhost.localdomain>
Permalink:  ../1166054349.6494.6.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1166054349.6494.6.camel@localhost.localdomain

 · 

reply

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, tgl@sss.pgh.pa.us, bruce@momjian.us, mallah.rajesh@gmail.com
  Subject: Re: Should duplicate indexes on same column and same
  In-Reply-To: <1166054349.6494.6.camel@localhost.localdomain>
  References: <200612132349.kBDNn7S28850@momjian.us> <1166054092.6494.4.camel@localhost.localdomain> <13302.1166054153@sss.pgh.pa.us> <1166054349.6494.6.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