-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
19 lines (15 loc) · 794 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This is a perl script to show the rowcount and size of a table in Postgres.
Requirements: DBI, DBD::Pg
Usage: pg_rowcount.pl <database> <schema>
Output:
Table Rows Size
--------------------------------------------------------------
pg_statistic 1853 1672 kB
pg_type 910 168 kB
pg_attribute 9569 1488 kB
pg_class 1371 416 kB
pg_authid 52 16 kB
pg_index 766 112 kB
pg_operator 705 104 kB
pg_database 44 16 kB
[...]