Re: COUNT(*) and index-only scans - Mailing list pgsql-hackers

From Greg Stark
Subject Re: COUNT(*) and index-only scans
Date
Msg-id CAM-w4HOBfxNcexc+gyhUe4LSYLeSsnPrtZsn3KcTaeK8h7Tq2A@mail.gmail.com
Whole thread Raw
In response to COUNT(*) and index-only scans  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Mon, Oct 10, 2011 at 6:23 PM, Bruce Momjian <bruce@momjian.us> wrote:
> I talked to Robert Haas and he said that index-only scans do not
> optimize COUNT(*).  Is this something we can do for PG 9.2?  Is anyone
> working on this?

People usually conflate multiple problems when they talk about
"count(*). The usual case people are concerned about would require
materialized views, not index-only scans.


--
greg


pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: COUNT(*) and index-only scans
Next
From: "Kevin Grittner"
Date:
Subject: Re: COUNT(*) and index-only scans