Skip site navigation (1) Skip section navigation (2)

Newbie question: ultra fast count(*)

From: Rodrigo Madera <rodrigo(dot)madera(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Newbie question: ultra fast count(*)
Date: 2005-11-25 19:36:35
Message-ID: 3cf983d0511251136j1afa0ec4i9a3987d250befe47@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
I have been reading all this technical talk about costs and such that
I don't (_yet_) understand.

Now I'm scared... what's the fastest way to do an equivalent of
count(*) on a table to know how many items it has?

Thanks,
Rodrigo

Responses

pgsql-performance by date

Next:From: Jaime CasanovaDate: 2005-11-25 19:40:06
Subject: Re: Newbie question: ultra fast count(*)
Previous:From: Pailloncy Jean-GerardDate: 2005-11-25 14:47:16
Subject: Re: 8.1 count(*) distinct: IndexScan/SeqScan

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group