Re: select count(*) status these days - Mailing list pgsql-general

From Greg Smith
Subject Re: select count(*) status these days
Date
Msg-id 4CBD2BE8.6030105@2ndquadrant.com
Whole thread Raw
In response to select count(*) status these days  (Dennis Gearon <gearond@sbcglobal.net>)
List pgsql-general
Dennis Gearon wrote:
> Is there any architectural way to speed it up? I'd actually like to run it every 2-60 seconds to update a counter on
apage for the marketing guy, (which for once, is me :- 

Could always maintain it with triggers.  See
http://wiki.postgresql.org/wiki/Slow_Counting for a discussion of this
whole issue, with pointers to articles about alternate solutions.

--
Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support  www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance"    Pre-ordering at:
https://www.packtpub.com/postgresql-9-0-high-performance/book


pgsql-general by date:

Previous
From: Tahir Tamba
Date:
Subject: install PostgreSQL 9 .0.1 issue using linux binary package .bin
Next
From: Ravi Katkar
Date:
Subject: drop view with out cascading the dependents