Created
September 5, 2018 11:44
-
-
Save pahaz/c722461c619bcc98d6ba123615c9e50b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for v in `docker ps --format '{{.Names}}\t{{.Status}}' | grep postgres | awk '{ print $1 }'` | |
do | |
echo $v | |
NNN=$v | |
docker exec -it $NNN vacuumdb --all -U postgres --full --analyze | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment