PostgreSQL 8.4でアイドル状態のプロセスを強制終了します:
SELECT procpid, (SELECT pg_terminate_backend(procpid)) as killed from pg_stat_activity
WHERE current_query LIKE '<IDLE>';
PostgreSQL 8.4でアイドル状態のプロセスを強制終了します:
SELECT procpid, (SELECT pg_terminate_backend(procpid)) as killed from pg_stat_activity
WHERE current_query LIKE '<IDLE>';