Re: Why count(*) doest use index? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Why count(*) doest use index?
Date
Msg-id AANLkTimhgZbDAKMpEPJEqe7qpYFj4rQBsqO_GN=81jA_@mail.gmail.com
Whole thread Raw
In response to Re: Why count(*) doest use index?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
On Sun, Mar 6, 2011 at 3:41 AM, Martijn van Oosterhout
<kleptog@svana.org> wrote:
> The other option is visibility data in the index. Doubles the size of
> your indexes though.

Also requires both table and index be locked while you update both so
you don't get race conditions.  so has a real performance impact there
as well.

pgsql-general by date:

Previous
From: Bill Thoen
Date:
Subject: Re: Logic AND between some strings
Next
From: Aleksey Tsalolikhin
Date:
Subject: Re: Web Hosting