Something like this in a bash script?
echo "select schemaname, tablename from pg_tables where tablename not in (your list of excluded tables) and schemaname not in ('information_schema', 'pg_catalog')" | psql -t > /tmp/tablist exec < /tmp/tablist while read line do set - $line echo "Vacuuming [$1] [$3]" echo "VACUUM VERBOSE ${1}.${3}" | psql done
On 12/21/2016 10:49 AM, Dinesh Chandra
12108 wrote:
|