From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Best database structure for timely ordered values
Date: Mon, 18 Dec 2000 11:46:55 -0500 (EST)
Message-ID: <200012181646.LAA29528@candle.pha.pa.us> (raw)
In-Reply-To: <3A3E3DF7.2D00A39D@wettzell.ifag.de>
> > I assume the user is concerned about non-balanced btrees.
> That is correct!
> As I tested an example database with about 7 million entries on PostgreSQL V
> 6.5.2
> and the result of
> select count(*) from table;
> tooks about 3 minutes I have this concern.
> May be version 7.0.3 will give a better result.
The larger problem is that count(*) doesn't use the index at all. It
just does a sequential scan of the heap table.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, dassing@wettzell.ifag.de, tgl@sss.pgh.pa.us
Subject: Re: Best database structure for timely ordered values
In-Reply-To: <200012181646.LAA29528@candle.pha.pa.us>
References: <3A3E3DF7.2D00A39D@wettzell.ifag.de> <200012181646.LAA29528@candle.pha.pa.us>
* 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