Como eliminar todas as conexões do Postgres
#!/usr/bin/env bash# kill all connections to the postgres serverif [ -n “$1″ ] ; then where=”where pg_stat_activity.datname = ‘$1′” echo “killing all connections to database ‘$1′”else where=”where pg_stat_activity.datname in (select …
Continuar lendo