Re: MAX() and multi-column index on a partitioned table? - Mailing list pgsql-performance

From Tom Lane
Subject Re: MAX() and multi-column index on a partitioned table?
Date
Msg-id 17857.1432334536@sss.pgh.pa.us
Whole thread Raw
In response to MAX() and multi-column index on a partitioned table?  (Dave Johansen <davejohansen@gmail.com>)
Responses Re: MAX() and multi-column index on a partitioned table?  (Dave Johansen <davejohansen@gmail.com>)
List pgsql-performance
Dave Johansen <davejohansen@gmail.com> writes:
> I'm trying to call MAX() on the first value of a multi-column index of a
> partitioned table and the planner is choosing to do a sequential scan
> instead of an index scan. Is there something I can do to fix this?

What PG version are you using?  9.1 or newer should know how to do this
with a merge append of several indexscans.

            regards, tom lane


pgsql-performance by date:

Previous
From: Dave Johansen
Date:
Subject: MAX() and multi-column index on a partitioned table?
Next
From: Dave Johansen
Date:
Subject: Re: MAX() and multi-column index on a partitioned table?