Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C1D76475E6F for ; Mon, 28 Oct 2002 10:21:33 -0500 (EST) Received: from www.trade-india.com (news1.trade-india.com [130.94.20.27]) by postgresql.org (Postfix) with SMTP id 1E6A3475E30 for ; Mon, 28 Oct 2002 10:21:33 -0500 (EST) Received: (qmail 32483 invoked by uid 99); 28 Oct 2002 15:21:37 -0000 Received: from 203.145.130.142 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Mon, 28 Oct 2002 20:51:37 +0530 (IST) Message-ID: <1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com> Date: Mon, 28 Oct 2002 20:51:37 +0530 (IST) Subject: Re: counting tupples From: To: In-Reply-To: <200210251537.56850.iddwb@moroni.pp.asu.edu> References: <200210251537.56850.iddwb@moroni.pp.asu.edu> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/268 X-Sequence-Number: 6126 Hi folks, There is "reltuples" in pg_class which is approximately equal to select count(*) from relation. i think its updated only on VACUUMING ? (david its not answer to ur question sorry) regds mallah. > I couldn't find anything relating to getting the cardinality of a table. I know a select will > display number of rows. I was hoping there was a 'cheaper' (less expensive) way than doing a > full select. > -- > David Bear > College of Public Programs/ASU > > ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and > unsubscribe commands go to majordomo@postgresql.org ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/