Created
July 30, 2012 08:12
-
-
Save manuelvanrijn/3205631 to your computer and use it in GitHub Desktop.
Revisions
-
Manuel van Rijn created this gist
Jul 30, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ SELECT SUM(pgClass.reltuples) AS totalRowCount FROM pg_class pgClass LEFT JOIN pg_namespace pgNamespace ON (pgNamespace.oid = pgClass.relnamespace) WHERE pgNamespace.nspname NOT IN ('pg_catalog', 'information_schema') AND pgClass.relkind='r'