Re: Composite Index question - Mailing list pgsql-general

From Tom Lane
Subject Re: Composite Index question
Date
Msg-id 9830.1287628114@sss.pgh.pa.us
Whole thread Raw
In response to Re: Composite Index question  (DM <dm.aeqa@gmail.com>)
List pgsql-general
DM <dm.aeqa@gmail.com> writes:
> I know there is no benfit of having duplicate indexes.
> Inorder for me to make change on production it requires lot of approvals and
> stuff.

> I wnat to know if there is any major performance drawback for having
> duplicate composite index,

Of course there is: it doubles the index-update overhead every time you
update the table, in return for no benefit whatsoever.  Get rid of the
duplicate index.  (Now, if the table is seldom updated, it might not be
urgent to do so.  But you ought to plan on doing it.)

            regards, tom lane

pgsql-general by date:

Previous
From: Tim Uckun
Date:
Subject: Updates, deletes and inserts are very slow. What can I do make them bearable?
Next
From: Tom Lane
Date:
Subject: Re: Custom cache implemented in a postgresql C function