Re: number of rows - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: number of rows
Date
Msg-id 1055509730.2069.0.camel@billy
Whole thread Raw
In response to number of rows  ("Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br>)
List pgsql-novice
Am Fre, 2003-06-13 um 11.04 schrieb Marcus Andree S. Magalhaes:
> Does anybody here know a better way to count a table's number
> of rows, besides select count (*) from tablename?
>
> I mean, is there any internal variable that stores the number of
> rows instead of sequencially scanning the entire database??

Not in SQL itself, but the app could do that (PHP, CMS, whatever)

bye
--
 e-Trolley Sayegh & John, Nabil Sayegh
 Tel.: 0700 etrolley /// 0700 38765539
 Fax.: +49 69 8299381-8
 PGP : http://www.e-trolley.de


pgsql-novice by date:

Previous
From: Alan Searles
Date:
Subject: Re: Converting IBM DB2 TRIGGERs to PostgreSQL
Next
From: Jeff Eckermann
Date:
Subject: Re: Exporting data from PostgreSQL