pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua D. Drake <jd@commandprompt.com>
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 18:55:53 -0500
Message-ID: <13302.1166054153@sss.pgh.pa.us> (raw)
In-Reply-To: <1166054092.6494.4.camel@localhost.localdomain>
References: <200612132349.kBDNn7S28850@momjian.us>
	<1166054092.6494.4.camel@localhost.localdomain>

"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.

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <13302.1166054153@sss.pgh.pa.us>
Permalink:  ../13302.1166054153@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13302.1166054153@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jd@commandprompt.com, bruce@momjian.us, mallah.rajesh@gmail.com
  Subject: Re: Should duplicate indexes on same column and same
  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>

* 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