From 5a82c39f8e8af54172cdffe0bcf3faec5576c04c Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 21 Feb 2016 14:35:06 -0600 Subject: [PATCH] Use better fake db name --- postgres/terminating-a-connection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/terminating-a-connection.md b/postgres/terminating-a-connection.md index d4b951d..e8b6579 100644 --- a/postgres/terminating-a-connection.md +++ b/postgres/terminating-a-connection.md @@ -29,7 +29,7 @@ following: ```sql select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity -where pg_stat_activity.datname = 'test_drop' +where pg_stat_activity.datname = 'sample_db' and pid <> pg_backend_pid(); pg_terminate_backend ----------------------