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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

database row count


  • From: Isaac Vetter <ivetter(at)math(dot)purdue(dot)edu>
  • To: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>
  • Subject: database row count
  • Date: Wed, 30 Jan 2008 15:10:50 -0500
  • Message-id: <47A0D9CA.4040306@math.purdue.edu> <text/plain>

Dear Pg experts;

I'd like to get a (rough) count of the numbers of rows across all tables in a given database.

I understand that I could write a script to run count(*) on each table and then sum the counts. Is there an easier way, has someone already written this script?

Much Thanks,

Isaac Vetter

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group