pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 14:12:35 +0100
Message-ID: <q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@mail.gmail.com> (raw)
In-Reply-To: <OFB0E54E57.8291629B-ON852576FE.0048251D-852576FE.0048332D@faa.gov>
References: <o2l2f4958ff1004070551o30fe9871g17fe164a5fdd36af@mail.gmail.com>
	<OFB0E54E57.8291629B-ON852576FE.0048251D-852576FE.0048332D@faa.gov>

2010/4/7 <Sherry.CTR.Zhu@faa.gov>

>
> Do you mean one index on two columns?
>
> something like this:   create index idx1 on tb1(col1, col2);
>
yup :) It would be quite useless without that feature.
Don't listen to oracle folks, they obviously know not much about products
others than oracle db(s).





-- 
GJ

view thread (11+ messages)  latest in thread

Message-ID: <q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@mail.gmail.com>
Permalink:  ../q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@mail.gmail.com/
Also on:    postgresql.org/message-id/q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@mail.gmail.com

 · 

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-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: <q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@mail.gmail.com>
  References: <o2l2f4958ff1004070551o30fe9871g17fe164a5fdd36af@mail.gmail.com> <OFB0E54E57.8291629B-ON852576FE.0048251D-852576FE.0048332D@faa.gov> <q2s2f4958ff1004070612ha4e21200uf29a00f9b1747968@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