pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
counting tupples
2+ messages / 2 participants
[nested] [flat]

* counting tupples
@ 2002-10-25 22:37  David Bear <iddwb@moroni.pp.asu.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: David Bear @ 2002-10-25 22:37 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: counting tupples
@ 2002-10-28 15:21  mallah@trade-india.com
  parent: David Bear <iddwb@moroni.pp.asu.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: mallah@trade-india.com @ 2002-10-28 15:21 UTC (permalink / raw)
  To: david.bear@asu.edu; +Cc: iddwb@moroni.pp.asu.edu; pgsql-admin



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/





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-10-28 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-25 22:37 counting tupples David Bear <iddwb@moroni.pp.asu.edu>
2002-10-28 15:21 ` mallah@trade-india.com

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