pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tiffany Thang <tiffanythang@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: multiple indexes on the same column
Date: Fri, 12 Apr 2019 09:51:51 -0400
Message-ID: <16482.1555077111@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB_W-NNpcyQEpMba42401yupk_7t4vY2cgA2gEty7oGTzUxd_w@mail.gmail.com>
References: <CAB_W-NNpcyQEpMba42401yupk_7t4vY2cgA2gEty7oGTzUxd_w@mail.gmail.com>

Tiffany Thang <tiffanythang@gmail.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).

I'd suggest reading

https://www.postgresql.org/docs/current/indexes.html

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <16482.1555077111@sss.pgh.pa.us>
Permalink:  ../16482.1555077111@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16482.1555077111@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tiffanythang@gmail.com
  Subject: Re: multiple indexes on the same column
  In-Reply-To: <16482.1555077111@sss.pgh.pa.us>
  References: <CAB_W-NNpcyQEpMba42401yupk_7t4vY2cgA2gEty7oGTzUxd_w@mail.gmail.com> <16482.1555077111@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox