Re: Proposal: COUNT(*) (and related) speedup - Mailing list pgsql-hackers

From Rajeev rastogi
Subject Re: Proposal: COUNT(*) (and related) speedup
Date
Msg-id BF2827DCCE55594C8D7A8F7FFD3AB7713DDDF1C3@SZXEML508-MBX.china.huawei.com
Whole thread Raw
In response to Proposal: COUNT(*) (and related) speedup  (Joshua Yanovski <pythonesque@gmail.com>)
List pgsql-hackers
On 04 April 2014 18:09, Joshua Yanovski Wrote:

> The counter would be updated only by VACUUM, which would perform the 
> same computation performed by the COUNT operation but add it 
> permanently to counter just before it set the visible_map bit to 1 (I 
> am not certain whether this would require unusual changes to WAL 
> replay or not).

I think there is one more disadvantages with this (or maybe I have missed something): User may not use count(*) or may
usejust once after creating new kind of index proposed but VACUUM will have to keep performing operation equivalent to
iterativecount(*), which might degrade performance for VACUUM.
 

Thanks and Regards,
Kumar Rajeev Rastogi


pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Next
From: Tom Lane
Date:
Subject: Re: [bug fix] pg_ctl always uses the same event source