From: | Craig James <cjames(at)emolecules(dot)com> |
---|---|
To: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com> |
Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Query planning around one key of a multi-column index |
Date: | 2019-12-19 03:02:45 |
Message-ID: | CAFwQ8reu3kbbREr2M2i-7o7C-UdTOpMybRyMzbkcCwjhmiyMYQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Google is your friend:
http://www.postgresqltutorial.com/postgresql-indexes/postgresql-multicolumn-indexes/
On Wed, Dec 18, 2019 at 4:43 PM Wells Oliver <wells(dot)oliver(at)gmail(dot)com> wrote:
> I've been using PG now for so many years and I don't have a solid concrete
> answer on this in my head, and I feel like I should: if I have a table with
> a multi-column index and I query on one of those columns (or some subset of
> those columns), will it use that index?
>
> Is there more reading on this topic? I've always felt it's a little more
> complicated but I'm not quite sure.
>
> --
> Wells Oliver
> wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>
>
--
---------------------------------
Craig A. James
Chief Technology Officer
eMolecules, Inc.
3430 Carmel Mountain Road, Suite 250
San Diego, CA 92121
---------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Wells Oliver | 2019-12-19 04:18:46 | Re: Query planning around one key of a multi-column index |
Previous Message | Wells Oliver | 2019-12-19 00:42:24 | Query planning around one key of a multi-column index |