{"action":"created","comment":{"url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/comments/174458854","pull_request_review_id":103816941,"id":174458854,"diff_hunk":"@@ -129,22 +129,22 @@ def __init__(\n             if not m:\n                 raise CheckError('Invalid shard connection: {}'.format(shard_def))\n             connection_str = (\"host='{host}' port='{port}' dbname='{dbname}' user='{user}' password='{password}' \"\n-                              \"connect_timeout='{connect_timeout}' options='-c statement_timeout={timeout}' \"\n+                              \"connect_timeout='{connect_timeout}' \"\n                               \"application_name='ZMON Check {check_id} (created by {created_by})' \").format(\n                 host=m.group('host'),\n                 port=int(m.group('port') or DEFAULT_PORT),\n                 dbname=m.group('dbname'),\n                 user=user,\n                 password=password,\n                 connect_timeout=connect_timeout,\n-                timeout=timeout,","path":"zmon_worker_monitor/builtins/plugins/sql_postgresql.py","position":13,"original_position":13,"commit_id":"0f10de060c992b56a65e4c3f2ef7781cc33ed6a6","original_commit_id":"0f10de060c992b56a65e4c3f2ef7781cc33ed6a6","user":{"login":"a1exsh","id":489601,"avatar_url":"https://avatars0.githubusercontent.com/u/489601?v=4","gravatar_id":"","url":"https://api.github.com/users/a1exsh","html_url":"https://github.com/a1exsh","followers_url":"https://api.github.com/users/a1exsh/followers","following_url":"https://api.github.com/users/a1exsh/following{/other_user}","gists_url":"https://api.github.com/users/a1exsh/gists{/gist_id}","starred_url":"https://api.github.com/users/a1exsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1exsh/subscriptions","organizations_url":"https://api.github.com/users/a1exsh/orgs","repos_url":"https://api.github.com/users/a1exsh/repos","events_url":"https://api.github.com/users/a1exsh/events{/privacy}","received_events_url":"https://api.github.com/users/a1exsh/received_events","type":"User","site_admin":false},"body":"Not really problematic, but what's the point?  If the first one worked, you don't need the second one.  The 2nd is more reliable, however.","created_at":"2018-03-14T13:32:02Z","updated_at":"2018-03-14T13:32:03Z","html_url":"https://github.com/zalando-zmon/zmon-worker/pull/325#discussion_r174458854","pull_request_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/comments/174458854"},"html":{"href":"https://github.com/zalando-zmon/zmon-worker/pull/325#discussion_r174458854"},"pull_request":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325"}},"in_reply_to_id":174107668},"pull_request":{"url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325","id":174632649,"html_url":"https://github.com/zalando-zmon/zmon-worker/pull/325","diff_url":"https://github.com/zalando-zmon/zmon-worker/pull/325.diff","patch_url":"https://github.com/zalando-zmon/zmon-worker/pull/325.patch","issue_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/325","number":325,"state":"open","locked":false,"title":"Apply statement_timeout for postgresql sessions explicitly using SET","user":{"login":"a1exsh","id":489601,"avatar_url":"https://avatars0.githubusercontent.com/u/489601?v=4","gravatar_id":"","url":"https://api.github.com/users/a1exsh","html_url":"https://github.com/a1exsh","followers_url":"https://api.github.com/users/a1exsh/followers","following_url":"https://api.github.com/users/a1exsh/following{/other_user}","gists_url":"https://api.github.com/users/a1exsh/gists{/gist_id}","starred_url":"https://api.github.com/users/a1exsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1exsh/subscriptions","organizations_url":"https://api.github.com/users/a1exsh/orgs","repos_url":"https://api.github.com/users/a1exsh/repos","events_url":"https://api.github.com/users/a1exsh/events{/privacy}","received_events_url":"https://api.github.com/users/a1exsh/received_events","type":"User","site_admin":false},"body":"The 'options' startup parameter is commonly ignored by pgbouncer.  Using SET\r\nexplicitly after opening a connection allows us to overcome this limitation.","created_at":"2018-03-13T11:38:21Z","updated_at":"2018-03-14T13:32:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09d9b59196f861dd9fc653a0cbc6b591b7806d55","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325/commits","review_comments_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325/comments","review_comment_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/325/comments","statuses_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/statuses/0f10de060c992b56a65e4c3f2ef7781cc33ed6a6","head":{"label":"a1exsh:reliably-set-pgsql-statement-timeout","ref":"reliably-set-pgsql-statement-timeout","sha":"0f10de060c992b56a65e4c3f2ef7781cc33ed6a6","user":{"login":"a1exsh","id":489601,"avatar_url":"https://avatars0.githubusercontent.com/u/489601?v=4","gravatar_id":"","url":"https://api.github.com/users/a1exsh","html_url":"https://github.com/a1exsh","followers_url":"https://api.github.com/users/a1exsh/followers","following_url":"https://api.github.com/users/a1exsh/following{/other_user}","gists_url":"https://api.github.com/users/a1exsh/gists{/gist_id}","starred_url":"https://api.github.com/users/a1exsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1exsh/subscriptions","organizations_url":"https://api.github.com/users/a1exsh/orgs","repos_url":"https://api.github.com/users/a1exsh/repos","events_url":"https://api.github.com/users/a1exsh/events{/privacy}","received_events_url":"https://api.github.com/users/a1exsh/received_events","type":"User","site_admin":false},"repo":{"id":90726690,"name":"zmon-worker","full_name":"a1exsh/zmon-worker","owner":{"login":"a1exsh","id":489601,"avatar_url":"https://avatars0.githubusercontent.com/u/489601?v=4","gravatar_id":"","url":"https://api.github.com/users/a1exsh","html_url":"https://github.com/a1exsh","followers_url":"https://api.github.com/users/a1exsh/followers","following_url":"https://api.github.com/users/a1exsh/following{/other_user}","gists_url":"https://api.github.com/users/a1exsh/gists{/gist_id}","starred_url":"https://api.github.com/users/a1exsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1exsh/subscriptions","organizations_url":"https://api.github.com/users/a1exsh/orgs","repos_url":"https://api.github.com/users/a1exsh/repos","events_url":"https://api.github.com/users/a1exsh/events{/privacy}","received_events_url":"https://api.github.com/users/a1exsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a1exsh/zmon-worker","description":"ZMON Python Worker","fork":true,"url":"https://api.github.com/repos/a1exsh/zmon-worker","forks_url":"https://api.github.com/repos/a1exsh/zmon-worker/forks","keys_url":"https://api.github.com/repos/a1exsh/zmon-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a1exsh/zmon-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a1exsh/zmon-worker/teams","hooks_url":"https://api.github.com/repos/a1exsh/zmon-worker/hooks","issue_events_url":"https://api.github.com/repos/a1exsh/zmon-worker/issues/events{/number}","events_url":"https://api.github.com/repos/a1exsh/zmon-worker/events","assignees_url":"https://api.github.com/repos/a1exsh/zmon-worker/assignees{/user}","branches_url":"https://api.github.com/repos/a1exsh/zmon-worker/branches{/branch}","tags_url":"https://api.github.com/repos/a1exsh/zmon-worker/tags","blobs_url":"https://api.github.com/repos/a1exsh/zmon-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a1exsh/zmon-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a1exsh/zmon-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/a1exsh/zmon-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a1exsh/zmon-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/a1exsh/zmon-worker/languages","stargazers_url":"https://api.github.com/repos/a1exsh/zmon-worker/stargazers","contributors_url":"https://api.github.com/repos/a1exsh/zmon-worker/contributors","subscribers_url":"https://api.github.com/repos/a1exsh/zmon-worker/subscribers","subscription_url":"https://api.github.com/repos/a1exsh/zmon-worker/subscription","commits_url":"https://api.github.com/repos/a1exsh/zmon-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/a1exsh/zmon-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/a1exsh/zmon-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/a1exsh/zmon-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/a1exsh/zmon-worker/contents/{+path}","compare_url":"https://api.github.com/repos/a1exsh/zmon-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a1exsh/zmon-worker/merges","archive_url":"https://api.github.com/repos/a1exsh/zmon-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a1exsh/zmon-worker/downloads","issues_url":"https://api.github.com/repos/a1exsh/zmon-worker/issues{/number}","pulls_url":"https://api.github.com/repos/a1exsh/zmon-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/a1exsh/zmon-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/a1exsh/zmon-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a1exsh/zmon-worker/labels{/name}","releases_url":"https://api.github.com/repos/a1exsh/zmon-worker/releases{/id}","deployments_url":"https://api.github.com/repos/a1exsh/zmon-worker/deployments","created_at":"2017-05-09T09:19:30Z","updated_at":"2017-05-09T09:19:32Z","pushed_at":"2018-03-13T11:37:49Z","git_url":"git://github.com/a1exsh/zmon-worker.git","ssh_url":"git@github.com:a1exsh/zmon-worker.git","clone_url":"https://github.com/a1exsh/zmon-worker.git","svn_url":"https://github.com/a1exsh/zmon-worker","homepage":"https://zmon.io/","size":993,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zalando-zmon:master","ref":"master","sha":"db1ca6338957a69e253dc05b079033f72969ed6e","user":{"login":"zalando-zmon","id":19532842,"avatar_url":"https://avatars3.githubusercontent.com/u/19532842?v=4","gravatar_id":"","url":"https://api.github.com/users/zalando-zmon","html_url":"https://github.com/zalando-zmon","followers_url":"https://api.github.com/users/zalando-zmon/followers","following_url":"https://api.github.com/users/zalando-zmon/following{/other_user}","gists_url":"https://api.github.com/users/zalando-zmon/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-zmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-zmon/subscriptions","organizations_url":"https://api.github.com/users/zalando-zmon/orgs","repos_url":"https://api.github.com/users/zalando-zmon/repos","events_url":"https://api.github.com/users/zalando-zmon/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-zmon/received_events","type":"Organization","site_admin":false},"repo":{"id":28918578,"name":"zmon-worker","full_name":"zalando-zmon/zmon-worker","owner":{"login":"zalando-zmon","id":19532842,"avatar_url":"https://avatars3.githubusercontent.com/u/19532842?v=4","gravatar_id":"","url":"https://api.github.com/users/zalando-zmon","html_url":"https://github.com/zalando-zmon","followers_url":"https://api.github.com/users/zalando-zmon/followers","following_url":"https://api.github.com/users/zalando-zmon/following{/other_user}","gists_url":"https://api.github.com/users/zalando-zmon/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-zmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-zmon/subscriptions","organizations_url":"https://api.github.com/users/zalando-zmon/orgs","repos_url":"https://api.github.com/users/zalando-zmon/repos","events_url":"https://api.github.com/users/zalando-zmon/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-zmon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-zmon/zmon-worker","description":"ZMON Python Worker","fork":false,"url":"https://api.github.com/repos/zalando-zmon/zmon-worker","forks_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/forks","keys_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/teams","hooks_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/hooks","issue_events_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/events","assignees_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/tags","blobs_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/languages","stargazers_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/stargazers","contributors_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/contributors","subscribers_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/subscribers","subscription_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/subscription","commits_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/merges","archive_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/downloads","issues_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/labels{/name}","releases_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-zmon/zmon-worker/deployments","created_at":"2015-01-07T14:47:02Z","updated_at":"2017-12-14T14:35:07Z","pushed_at":"2018-03-13T16:43:15Z","git_url":"git://github.com/zalando-zmon/zmon-worker.git","ssh_url":"git@github.com:zalando-zmon/zmon-worker.git","clone_url":"https://github.com/zalando-zmon/zmon-worker.git","svn_url":"https://github.com/zalando-zmon/zmon-worker","homepage":"https://zmon.io/","size":1018,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":22,"open_issues":33,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325"},"html":{"href":"https://github.com/zalando-zmon/zmon-worker/pull/325"},"issue":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/325"},"comments":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/zalando-zmon/zmon-worker/statuses/0f10de060c992b56a65e4c3f2ef7781cc33ed6a6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"a1exsh"}}