{"action":"created","issue":{"url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/45","labels_url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/45/comments","events_url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/45/events","html_url":"https://github.com/xtuple/xtuple-admin-utility/pull/45","id":96636825,"number":45,"title":"Carve pilot kills database connections after prompting","user":{"login":"elipup","id":3178379,"avatar_url":"https://avatars.githubusercontent.com/u/3178379?v=3","gravatar_id":"","url":"https://api.github.com/users/elipup","html_url":"https://github.com/elipup","followers_url":"https://api.github.com/users/elipup/followers","following_url":"https://api.github.com/users/elipup/following{/other_user}","gists_url":"https://api.github.com/users/elipup/gists{/gist_id}","starred_url":"https://api.github.com/users/elipup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elipup/subscriptions","organizations_url":"https://api.github.com/users/elipup/orgs","repos_url":"https://api.github.com/users/elipup/repos","events_url":"https://api.github.com/users/elipup/events{/privacy}","received_events_url":"https://api.github.com/users/elipup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-22T18:43:42Z","updated_at":"2015-08-10T15:25:19Z","closed_at":"2015-08-10T14:22:48Z","pull_request":{"url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/pulls/45","html_url":"https://github.com/xtuple/xtuple-admin-utility/pull/45","diff_url":"https://github.com/xtuple/xtuple-admin-utility/pull/45.diff","patch_url":"https://github.com/xtuple/xtuple-admin-utility/pull/45.patch"},"body":"Added some helper functions to revoke and grant connect privs and kill connections using pg_terminate_backend().\r\nFixes #35 "},"comment":{"url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/comments/129494588","html_url":"https://github.com/xtuple/xtuple-admin-utility/pull/45#issuecomment-129494588","issue_url":"https://api.github.com/repos/xtuple/xtuple-admin-utility/issues/45","id":129494588,"user":{"login":"davidbeauchamp","id":1675112,"avatar_url":"https://avatars.githubusercontent.com/u/1675112?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbeauchamp","html_url":"https://github.com/davidbeauchamp","followers_url":"https://api.github.com/users/davidbeauchamp/followers","following_url":"https://api.github.com/users/davidbeauchamp/following{/other_user}","gists_url":"https://api.github.com/users/davidbeauchamp/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbeauchamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbeauchamp/subscriptions","organizations_url":"https://api.github.com/users/davidbeauchamp/orgs","repos_url":"https://api.github.com/users/davidbeauchamp/repos","events_url":"https://api.github.com/users/davidbeauchamp/events{/privacy}","received_events_url":"https://api.github.com/users/davidbeauchamp/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T15:25:19Z","updated_at":"2015-08-10T15:25:19Z","body":"I went with that particular style because I had run into instances where $? changed before I was able to compare it, so I stuck it into a variable and checked that instead. I guess the alternative is to just use || or && as part of the command.."}}