--- trunk/tools/count_tables.sh 2003/07/16 15:54:38 115 +++ trunk/tools/count_tables.sh 2003/07/21 15:54:57 116 @@ -2,7 +2,11 @@ # count number of records in all tables -db="webpac-dev" +if [ -z "$1" ] ; then + db="webpac-dev" +else + db=$1 +fi echo "records in $db, by table" psql $db -A -t -F : -c "\d" | cut -d: -f2 | xargs -i psql $db -A -t -F " " -c "select count(*),'{}' from {}" | sort -nr