pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Anton <anton200@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1
Date: Sat, 27 Oct 2007 10:11:32 +0100
Message-ID: <472300C4.70800@enterprisedb.com> (raw)
In-Reply-To: <8cac8dd0710270153v5d6a6dfar1850597750bf17e2@mail.gmail.com>
References: <46CEB522.9030907@enterprisedb.com>
	<C2F454A1.3CA32%llonergan@greenplum.com>
	<8cac8dd0710262126t147f8974rb58a1e7c615e0725@mail.gmail.com>
	<8491.1193463449@sss.pgh.pa.us>
	<8cac8dd0710270153v5d6a6dfar1850597750bf17e2@mail.gmail.com>

Anton wrote:
> I repost here my original question "Why it no uses indexes?" (on
> partitioned table and ORDER BY indexed_field DESC LIMIT 1), if you
> mean that you miss this discussion.

As I said back then:

The planner isn't smart enough to push the "ORDER BY ... LIMIT ..."
below the append node.

-- 
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com



view thread (33+ messages)  latest in thread

Message-ID: <472300C4.70800@enterprisedb.com>
Permalink:  ../472300C4.70800@enterprisedb.com/
Also on:    postgresql.org/message-id/472300C4.70800@enterprisedb.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: heikki@enterprisedb.com, anton200@gmail.com
  Subject: Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1
  In-Reply-To: <472300C4.70800@enterprisedb.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