pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Johansen <davejohansen@gmail.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: MAX() and multi-column index on a partitioned table?
Date: Fri, 22 May 2015 21:13:50 -0400
Message-ID: <21054.1432343630@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAcYxUeoVw3CPFkvoCA7cETzNb-rBRpBeb4n3Dw3U6az6Zj-0g@mail.gmail.com>
References: <CAAcYxUe0J55EpVhFnbJo6A6FHizt6NzfhH2dRGHobXKvpTPjzQ@mail.gmail.com>
	<17857.1432334536@sss.pgh.pa.us>
	<CAAcYxUeoVw3CPFkvoCA7cETzNb-rBRpBeb4n3Dw3U6az6Zj-0g@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Dave Johansen <davejohansen@gmail.com> writes:
> On Fri, May 22, 2015 at 3:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> What PG version are you using?  9.1 or newer should know how to do this
>> with a merge append of several indexscans.

> Sorry, I should have mentioned that in the original email. I'm using 8.4.20
> on RHEL 6. From your reply, it sounds like this is the expected behavior
> for 8.4 and 9.0. Is that the case?

Yeah, pre-9.1 is not very bright about that.  You could factor the query
manually, perhaps, though it's surely a pain in the neck.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (4+ messages)

Message-ID: <21054.1432343630@sss.pgh.pa.us>
Permalink:  ../21054.1432343630@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21054.1432343630@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, davejohansen@gmail.com
  Subject: Re: MAX() and multi-column index on a partitioned table?
  In-Reply-To: <21054.1432343630@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