Skip site navigation (1) Skip section navigation (2)

Re: Should duplicate indexes on same column and same

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Rajesh Kumar Mallah <mallah(dot)rajesh(at)gmail(dot)com>, Lista Postgres <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Should duplicate indexes on same column and same
Date: 2006-12-13 23:55:53
Message-ID: 13302.1166054153@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
"Joshua D. Drake" <jd(at)commandprompt(dot)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

In response to

Responses

pgsql-admin by date

Next:From: Joshua D. DrakeDate: 2006-12-13 23:59:09
Subject: Re: Should duplicate indexes on same column and same
Previous:From: Joshua D. DrakeDate: 2006-12-13 23:54:52
Subject: Re: Should duplicate indexes on same column and same

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group