Re: redundants indexes can be created - Mailing list pgsql-general

From Richard Huxton
Subject Re: redundants indexes can be created
Date
Msg-id 486DFAD7.5030304@archonet.com
Whole thread Raw
In response to Re: redundants indexes can be created  (Cyril SCETBON <scetbon@echo.fr>)
Responses Re: redundants indexes can be created
List 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

pgsql-general by date:

Previous
From: Cyril SCETBON
Date:
Subject: Re: redundants indexes can be created
Next
From: Bernd Helmle
Date:
Subject: Re: redundants indexes can be created