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

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 (view raw or flat)
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

pgsql-novice by date

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

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