Re: redundants indexes can be created

From: Richard Huxton <dev(at)archonet(dot)com>
To: Cyril SCETBON <scetbon(at)echo(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: redundants indexes can be created
Date: 2008-07-04 10:26:31
Message-ID: 486DFAD7.5030304@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cyril SCETBON wrote:
> Richard Huxton wrote:
>> Cyril SCETBON wrote:
>>> Hi guys,
>>>
>>> Why postgres does not disallow creating redundants indexes ? Is it the
>>> same behaviour in postgresql 8.3 ?
>>
>> Why should it stop you?
>> Do you have an application that randomly generates indexes?
> I'm just wondering why postgresql/mysql work like that.

You ask for a particular index, it creates the index. Why complicate the
code checking for possible duplicate indexes if it's not a problem
people tend to encounter?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2008-07-04 10:27:07 Re: [GENERAL] pg crashing
Previous Message Cyril SCETBON 2008-07-04 10:13:21 Re: redundants indexes can be created