for db in psql --pset=pager=off -t -A -q -c 'select datname from pg_database where datname not in ($$template0$$,$$template1$$)'
do
psql -d $db --pset=pager=off --q -c 'select * from information_schema.schemata'
done
备注:第一行psql前和do的上一行结尾都有 ` 符号
for db in psql --pset=pager=off -t -A -q -c 'select datname from pg_database where datname not in ($$template0$$,$$template1$$)'
do
psql -d $db --pset=pager=off --q -c 'select * from information_schema.schemata'
done
备注:第一行psql前和do的上一行结尾都有 ` 符号