dbTalk Databases Forums  

Re: [SQL] Row counts/data changes. Any catalog table that has this info?

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Re: [SQL] Row counts/data changes. Any catalog table that has this info? in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
daq
 
Posts: n/a

Default Re: [SQL] Row counts/data changes. Any catalog table that has this info? - 02-20-2004 , 01:44 AM







DB> Folks,

DB> Is there a catalog table or location where I can go to find data counts for
DB> tables?

DB> It would be nice if I could do a query which returned something like:

DB> table_name #Rows
DB> cust 1000
DB> order 5000
DB> order_detail 9500

DB> without having to have the overhead of querying each table in turn.

DB> If there is such a source then is it accurate as of now or last vacuum or
DB> ???

The pg_class table has a reltuples field but only the vacuum process updates it.

DAQ


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.