helper: issue following sql to get the script (on each of the mentioned databases):
select 'vacuum analyze '||table_schema||'.'||table_name||'; ' from information_schema.tables where table_schema in ('list', 'aa', 'public')

copy/paste result in a new PgAdmin SQLStructured Query Language Editor
replace all " with nothing (Edit->Find and Replace->Find what " -> Replace All)
run all commands together as PgScript (or use F6)