Re: multiple indexes on the same column

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tiffany Thang <tiffanythang(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: multiple indexes on the same column
Date: 2019-04-12 16:55:15
Message-ID: 20190412165515.xmuni4ucagtehiqj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 2019-04-12 09:51:51 -0400, Tom Lane wrote:
> Tiffany Thang <tiffanythang(at)gmail(dot)com> writes:
> > Can someone explain the use of creating multiple indexes on the same
> > column?
>
> There is none, unless the indexes have different properties (e.g.
> different opclasses and/or index AMs).

Well, it can be beneficial to create a new index concurrently, and then
drop the old one concurrently. Before v12 that's the only way to
recreate an index during production, if it e.g. bloated.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-04-12 17:07:36 Re: multiple indexes on the same column
Previous Message Adrian Klaver 2019-04-12 14:16:37 Re: Fwd: Postgresql with nextcloud in Windows Server