Re: seq scan in the case of max() on the primary key column

From: Greg Smith <greg(at)2ndQuadrant(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: seq scan in the case of max() on the primary key column
Date: 2011-06-22 17:01:43
Message-ID: 4E021FF7.7@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 06/22/2011 05:55 AM, Marti Raudsepp wrote:
> Now I created a wiki snippet page for this handy
> feature here:
> https://wiki.postgresql.org/wiki/Efficient_min/max_over_partitioned_table
>

I just tweaked this a bit to document the version compatibility issues
around it and make it easier to follow. I think that's now the page we
should point people toward when this pops up again. Between that and my
blog post I reference in it, they can find all the details and a
workaround in one place.

--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2011-06-22 18:12:37 Re: seq scan in the case of max() on the primary key column
Previous Message Shaun Thomas 2011-06-22 15:50:48 Re: Contemplating SSD Hardware RAID