su - postgres -c "psql -d istok_main -c '\dt'" | head -20
su - postgres -c "psql -d istok_main -c \"select count(*) from information_schema.tables where table_schema='public'\""
su - postgres -c "psql -d istok_main -c '\d directories'" | head
su - postgres -c "pg_restore -s -d istok_main /tmp/istok_main.dump" 2>&1 | grep -i "ОШИБКА" | sort | uniq -c | sort -rn | head -10