pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: sathiya psql <sathiya.psql@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: what is the maximum number of rows in a table in postgresql 8.1
Date: Tue, 25 Mar 2008 22:09:34 +0900
Message-ID: <47E8F98E.1040505@postnewspapers.com.au> (raw)
In-Reply-To: <f966c2ee0803250550o563309a3p2c2d4509535c8bf6@mail.gmail.com>
References: <f966c2ee0803250442g9ceaf61v2c3f35221fcc6481@mail.gmail.com>
	<7be3f35d0803250448h62f47b13mebe0252fca9b90e1@mail.gmail.com>
	<f966c2ee0803250454k716edf4cgcd054e7b563e530c@mail.gmail.com>
	<20080325120101.GC6756@alvh.no-ip.org>
	<f966c2ee0803250508t444524b6y44b9ee67c8e04673@mail.gmail.com>
	<47E8EEF1.40709@postnewspapers.com.au>
	<f966c2ee0803250550o563309a3p2c2d4509535c8bf6@mail.gmail.com>

sathiya psql wrote:
> EXPLAIN ANALYZE SELECT count(*) from call_log_in_ram ;
>   
And your usual query is:

SELECT count(*) from call_log_in_ram;

?

If so, you should definitely build a summary table maintained by a 
trigger to track the row count. That's VERY well explained in the 
mailing list archives. This was suggested to you very early on in the 
discussion.

If you have problems with other queries, how about showing EXPLAIN 
ANALYZE for the other queries you're having problems with?

--
Craig Ringer



view thread (11+ messages)  latest in thread

Message-ID: <47E8F98E.1040505@postnewspapers.com.au>
Permalink:  ../47E8F98E.1040505@postnewspapers.com.au/
Also on:    postgresql.org/message-id/47E8F98E.1040505@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig@postnewspapers.com.au, sathiya.psql@gmail.com
  Subject: Re: what is the maximum number of rows in a table in postgresql 8.1
  In-Reply-To: <47E8F98E.1040505@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox