{"name":"gist: 969941","desc":"Close open sql connections in postgres for testing","actor":"tommeier","url":"https://gist.github.com/969941","snippet":"SELECT count(pg_terminate_backend(procpid)) from pg_stat_activity WHERE datname = 'DATABASE_NAME' AND usename NOT IN (SELECT usename FROM pg_user WHERE usesuper);","actor_gravatar":"c401bb0c94ad2957222a36e403cbc07b","action":"create"}