Re: count(*) performance improvement ideas - Mailing list pgsql-hackers

From Tom Lane
Subject Re: count(*) performance improvement ideas
Date
Msg-id 19417.1205335861@sss.pgh.pa.us
Whole thread Raw
In response to count(*) performance improvement ideas  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: count(*) performance improvement ideas  (Bruce Momjian <bruce@momjian.us>)
Re: count(*) performance improvement ideas  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Re: count(*) performance improvement ideas  ("Stephen Denne" <Stephen.Denne@datamail.co.nz>)
List pgsql-hackers
"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> I am sure this must have been discussed before.

Indeed.  Apparently you didn't find the threads in which the idea of
having transactions enter "delta" entries was discussed?  Solves both
the locking and the MVCC problems, at the cost that you need to make
cleanup passes over the counter table fairly often.

I don't see this as material for the core DB but it would make a great
contrib module.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: TODO-list on wiki (was: TODO update about SQLSTATE to PGconn)
Next
From: Bruce Momjian
Date:
Subject: Re: Re: TODO-list on wiki (was: TODO update about SQLSTATE to PGconn)