pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mallah@trade-india.com
To: david.bear@asu.edu
Cc: iddwb@moroni.pp.asu.edu
Cc: pgsql-admin@postgresql.org
Subject: Re: counting tupples
Date: Mon, 28 Oct 2002 20:51:37 +0530 (IST)
Message-ID: <1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com> (raw)
In-Reply-To: <200210251537.56850.iddwb@moroni.pp.asu.edu>
References: <200210251537.56850.iddwb@moroni.pp.asu.edu>



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/





view thread (2+ messages)

Message-ID: <1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com>
Permalink:  ../1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com/
Also on:    postgresql.org/message-id/1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, david.bear@asu.edu, iddwb@moroni.pp.asu.edu
  Subject: Re: counting tupples
  In-Reply-To: <1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com>
  References: <200210251537.56850.iddwb@moroni.pp.asu.edu> <1292.203.145.130.142.1035818497.squirrel@mail.trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox