From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
To: Sherry.CTR.Zhu@faa.gov
Cc: Joel Jacobson <joel@gluefinance.com>
Cc: pgsql-performance@postgresql.org, Robert Haas <robertmhaas@gmail.com>
Subject: Re: LIMIT causes planner to do Index Scan using a less optimal index
Date: Wed, 7 Apr 2010 13:51:17 +0100
Message-ID: <o2l2f4958ff1004070551o30fe9871g17fe164a5fdd36af@mail.gmail.com> (raw)
In-Reply-To: <OF1E8AF3A4.BBF11452-ON852576FE.00430BF8-852576FE.0043D4E6@faa.gov>
References: <o2x8bdec0841004061530g672b7873l9c0bf041569c87ce@mail.gmail.com>
<OF1E8AF3A4.BBF11452-ON852576FE.00430BF8-852576FE.0043D4E6@faa.gov>
On Wed, Apr 7, 2010 at 1:20 PM, <Sherry.CTR.Zhu@faa.gov> wrote:
>
> Guys,
>
> Thanks for trying and opening your mind.
> If you want to know how Oracle addressed this issue, here it is: index
> on two columns. I remember that they told me in the training postgres has
> no this kind of index, can someone clarify?
>
>
lies. postgresql allows you indices on multiple columns. What it does not
have, is index on multiple tables.
--
GJ
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-performance@postgresql.org
Cc: gryzman@gmail.com, Sherry.CTR.Zhu@faa.gov, joel@gluefinance.com, robertmhaas@gmail.com
Subject: Re: LIMIT causes planner to do Index Scan using a less optimal index
In-Reply-To: <o2l2f4958ff1004070551o30fe9871g17fe164a5fdd36af@mail.gmail.com>
References: <o2x8bdec0841004061530g672b7873l9c0bf041569c87ce@mail.gmail.com> <OF1E8AF3A4.BBF11452-ON852576FE.00430BF8-852576FE.0043D4E6@faa.gov> <o2l2f4958ff1004070551o30fe9871g17fe164a5fdd36af@mail.gmail.com>
* 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