Re: database row count

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Carol Cheung" <cacheung(at)consumercontact(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: database row count
Date: 2008-01-30 21:19:50
Message-ID: 36e682920801301319h5cd9b316m7437eb0ffaafa290@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Jan 30, 2008 4:14 PM, Carol Cheung <cacheung(at)consumercontact(dot)com> wrote:
> How about
>
> SELECT relname, reltuples FROM pg_class WHERE relname IN (...);

It should be noted that this will only work if the tables have been
analyzed recently.

--
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
499 Thornall Street, 2nd Floor | jonah(dot)harris(at)enterprisedb(dot)com
Edison, NJ 08837 | http://www.enterprisedb.com/

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mary Anderson 2008-01-30 21:48:59 Protecting a web app from Postgresql injection
Previous Message Carol Cheung 2008-01-30 21:14:29 Re: database row count