{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3","id":44689899,"html_url":"https://github.com/pgaudit/pgaudit/pull/3","diff_url":"https://github.com/pgaudit/pgaudit/pull/3.diff","patch_url":"https://github.com/pgaudit/pgaudit/pull/3.patch","issue_url":"https://api.github.com/repos/pgaudit/pgaudit/issues/3","number":3,"state":"closed","locked":false,"title":"add a flag to specify --user in pgaudit_analyze script","user":{"login":"crunchyjohn","id":13947013,"avatar_url":"https://avatars.githubusercontent.com/u/13947013?v=3","gravatar_id":"","url":"https://api.github.com/users/crunchyjohn","html_url":"https://github.com/crunchyjohn","followers_url":"https://api.github.com/users/crunchyjohn/followers","following_url":"https://api.github.com/users/crunchyjohn/following{/other_user}","gists_url":"https://api.github.com/users/crunchyjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/crunchyjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crunchyjohn/subscriptions","organizations_url":"https://api.github.com/users/crunchyjohn/orgs","repos_url":"https://api.github.com/users/crunchyjohn/repos","events_url":"https://api.github.com/users/crunchyjohn/events{/privacy}","received_events_url":"https://api.github.com/users/crunchyjohn/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nI'd like to make a small contribution to the pgaudit_analyze script.\r\nCurrently, the script assumes that the user running the script is the postgres user.\r\nThere's an issue where if the script is invoked as root, the connection will fail.\r\n\r\nThere are two potential solutions that I can figure-- hardcode the user as \"postgres\", or add a new option flag to allow the user to be specified on the command line.  While the first solution would work, it does not allow extra flexibility for environments where the postgres user is different from the default case.  This submission allows for the new flag to be added, which should be a simple workaround.\r\n\r\nThank you!","created_at":"2015-09-10T16:33:11Z","updated_at":"2015-09-14T13:45:16Z","closed_at":"2015-09-14T13:45:16Z","merged_at":"2015-09-14T13:45:16Z","merge_commit_sha":"bc8ba7f0426bda235f619e7918c8653c01f078fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3/commits","review_comments_url":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3/comments","review_comment_url":"https://api.github.com/repos/pgaudit/pgaudit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgaudit/pgaudit/issues/3/comments","statuses_url":"https://api.github.com/repos/pgaudit/pgaudit/statuses/0fa684f6d7ab90485bf95ff50f18b070670f3082","head":{"label":"crunchyjohn:feature-log-analyze","ref":"feature-log-analyze","sha":"0fa684f6d7ab90485bf95ff50f18b070670f3082","user":{"login":"crunchyjohn","id":13947013,"avatar_url":"https://avatars.githubusercontent.com/u/13947013?v=3","gravatar_id":"","url":"https://api.github.com/users/crunchyjohn","html_url":"https://github.com/crunchyjohn","followers_url":"https://api.github.com/users/crunchyjohn/followers","following_url":"https://api.github.com/users/crunchyjohn/following{/other_user}","gists_url":"https://api.github.com/users/crunchyjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/crunchyjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crunchyjohn/subscriptions","organizations_url":"https://api.github.com/users/crunchyjohn/orgs","repos_url":"https://api.github.com/users/crunchyjohn/repos","events_url":"https://api.github.com/users/crunchyjohn/events{/privacy}","received_events_url":"https://api.github.com/users/crunchyjohn/received_events","type":"User","site_admin":false},"repo":{"id":42256428,"name":"pgaudit","full_name":"crunchyjohn/pgaudit","owner":{"login":"crunchyjohn","id":13947013,"avatar_url":"https://avatars.githubusercontent.com/u/13947013?v=3","gravatar_id":"","url":"https://api.github.com/users/crunchyjohn","html_url":"https://github.com/crunchyjohn","followers_url":"https://api.github.com/users/crunchyjohn/followers","following_url":"https://api.github.com/users/crunchyjohn/following{/other_user}","gists_url":"https://api.github.com/users/crunchyjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/crunchyjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crunchyjohn/subscriptions","organizations_url":"https://api.github.com/users/crunchyjohn/orgs","repos_url":"https://api.github.com/users/crunchyjohn/repos","events_url":"https://api.github.com/users/crunchyjohn/events{/privacy}","received_events_url":"https://api.github.com/users/crunchyjohn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crunchyjohn/pgaudit","description":"PostgreSQL Audit Extension","fork":true,"url":"https://api.github.com/repos/crunchyjohn/pgaudit","forks_url":"https://api.github.com/repos/crunchyjohn/pgaudit/forks","keys_url":"https://api.github.com/repos/crunchyjohn/pgaudit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crunchyjohn/pgaudit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crunchyjohn/pgaudit/teams","hooks_url":"https://api.github.com/repos/crunchyjohn/pgaudit/hooks","issue_events_url":"https://api.github.com/repos/crunchyjohn/pgaudit/issues/events{/number}","events_url":"https://api.github.com/repos/crunchyjohn/pgaudit/events","assignees_url":"https://api.github.com/repos/crunchyjohn/pgaudit/assignees{/user}","branches_url":"https://api.github.com/repos/crunchyjohn/pgaudit/branches{/branch}","tags_url":"https://api.github.com/repos/crunchyjohn/pgaudit/tags","blobs_url":"https://api.github.com/repos/crunchyjohn/pgaudit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crunchyjohn/pgaudit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crunchyjohn/pgaudit/git/refs{/sha}","trees_url":"https://api.github.com/repos/crunchyjohn/pgaudit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crunchyjohn/pgaudit/statuses/{sha}","languages_url":"https://api.github.com/repos/crunchyjohn/pgaudit/languages","stargazers_url":"https://api.github.com/repos/crunchyjohn/pgaudit/stargazers","contributors_url":"https://api.github.com/repos/crunchyjohn/pgaudit/contributors","subscribers_url":"https://api.github.com/repos/crunchyjohn/pgaudit/subscribers","subscription_url":"https://api.github.com/repos/crunchyjohn/pgaudit/subscription","commits_url":"https://api.github.com/repos/crunchyjohn/pgaudit/commits{/sha}","git_commits_url":"https://api.github.com/repos/crunchyjohn/pgaudit/git/commits{/sha}","comments_url":"https://api.github.com/repos/crunchyjohn/pgaudit/comments{/number}","issue_comment_url":"https://api.github.com/repos/crunchyjohn/pgaudit/issues/comments{/number}","contents_url":"https://api.github.com/repos/crunchyjohn/pgaudit/contents/{+path}","compare_url":"https://api.github.com/repos/crunchyjohn/pgaudit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crunchyjohn/pgaudit/merges","archive_url":"https://api.github.com/repos/crunchyjohn/pgaudit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crunchyjohn/pgaudit/downloads","issues_url":"https://api.github.com/repos/crunchyjohn/pgaudit/issues{/number}","pulls_url":"https://api.github.com/repos/crunchyjohn/pgaudit/pulls{/number}","milestones_url":"https://api.github.com/repos/crunchyjohn/pgaudit/milestones{/number}","notifications_url":"https://api.github.com/repos/crunchyjohn/pgaudit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crunchyjohn/pgaudit/labels{/name}","releases_url":"https://api.github.com/repos/crunchyjohn/pgaudit/releases{/id}","created_at":"2015-09-10T16:27:28Z","updated_at":"2015-09-10T16:27:29Z","pushed_at":"2015-09-10T16:29:52Z","git_url":"git://github.com/crunchyjohn/pgaudit.git","ssh_url":"git@github.com:crunchyjohn/pgaudit.git","clone_url":"https://github.com/crunchyjohn/pgaudit.git","svn_url":"https://github.com/crunchyjohn/pgaudit","homepage":"","size":308,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"pgaudit:feature-log-analyze","ref":"feature-log-analyze","sha":"73a07ac3b2846937f40a98c97993376d4e5239cf","user":{"login":"pgaudit","id":12944485,"avatar_url":"https://avatars.githubusercontent.com/u/12944485?v=3","gravatar_id":"","url":"https://api.github.com/users/pgaudit","html_url":"https://github.com/pgaudit","followers_url":"https://api.github.com/users/pgaudit/followers","following_url":"https://api.github.com/users/pgaudit/following{/other_user}","gists_url":"https://api.github.com/users/pgaudit/gists{/gist_id}","starred_url":"https://api.github.com/users/pgaudit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgaudit/subscriptions","organizations_url":"https://api.github.com/users/pgaudit/orgs","repos_url":"https://api.github.com/users/pgaudit/repos","events_url":"https://api.github.com/users/pgaudit/events{/privacy}","received_events_url":"https://api.github.com/users/pgaudit/received_events","type":"Organization","site_admin":false},"repo":{"id":38329989,"name":"pgaudit","full_name":"pgaudit/pgaudit","owner":{"login":"pgaudit","id":12944485,"avatar_url":"https://avatars.githubusercontent.com/u/12944485?v=3","gravatar_id":"","url":"https://api.github.com/users/pgaudit","html_url":"https://github.com/pgaudit","followers_url":"https://api.github.com/users/pgaudit/followers","following_url":"https://api.github.com/users/pgaudit/following{/other_user}","gists_url":"https://api.github.com/users/pgaudit/gists{/gist_id}","starred_url":"https://api.github.com/users/pgaudit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgaudit/subscriptions","organizations_url":"https://api.github.com/users/pgaudit/orgs","repos_url":"https://api.github.com/users/pgaudit/repos","events_url":"https://api.github.com/users/pgaudit/events{/privacy}","received_events_url":"https://api.github.com/users/pgaudit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pgaudit/pgaudit","description":"PostgreSQL Audit Extension","fork":false,"url":"https://api.github.com/repos/pgaudit/pgaudit","forks_url":"https://api.github.com/repos/pgaudit/pgaudit/forks","keys_url":"https://api.github.com/repos/pgaudit/pgaudit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgaudit/pgaudit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgaudit/pgaudit/teams","hooks_url":"https://api.github.com/repos/pgaudit/pgaudit/hooks","issue_events_url":"https://api.github.com/repos/pgaudit/pgaudit/issues/events{/number}","events_url":"https://api.github.com/repos/pgaudit/pgaudit/events","assignees_url":"https://api.github.com/repos/pgaudit/pgaudit/assignees{/user}","branches_url":"https://api.github.com/repos/pgaudit/pgaudit/branches{/branch}","tags_url":"https://api.github.com/repos/pgaudit/pgaudit/tags","blobs_url":"https://api.github.com/repos/pgaudit/pgaudit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgaudit/pgaudit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgaudit/pgaudit/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgaudit/pgaudit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgaudit/pgaudit/statuses/{sha}","languages_url":"https://api.github.com/repos/pgaudit/pgaudit/languages","stargazers_url":"https://api.github.com/repos/pgaudit/pgaudit/stargazers","contributors_url":"https://api.github.com/repos/pgaudit/pgaudit/contributors","subscribers_url":"https://api.github.com/repos/pgaudit/pgaudit/subscribers","subscription_url":"https://api.github.com/repos/pgaudit/pgaudit/subscription","commits_url":"https://api.github.com/repos/pgaudit/pgaudit/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgaudit/pgaudit/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgaudit/pgaudit/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgaudit/pgaudit/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgaudit/pgaudit/contents/{+path}","compare_url":"https://api.github.com/repos/pgaudit/pgaudit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgaudit/pgaudit/merges","archive_url":"https://api.github.com/repos/pgaudit/pgaudit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgaudit/pgaudit/downloads","issues_url":"https://api.github.com/repos/pgaudit/pgaudit/issues{/number}","pulls_url":"https://api.github.com/repos/pgaudit/pgaudit/pulls{/number}","milestones_url":"https://api.github.com/repos/pgaudit/pgaudit/milestones{/number}","notifications_url":"https://api.github.com/repos/pgaudit/pgaudit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgaudit/pgaudit/labels{/name}","releases_url":"https://api.github.com/repos/pgaudit/pgaudit/releases{/id}","created_at":"2015-06-30T19:55:22Z","updated_at":"2015-08-11T10:53:50Z","pushed_at":"2015-09-14T13:45:16Z","git_url":"git://github.com/pgaudit/pgaudit.git","ssh_url":"git@github.com:pgaudit/pgaudit.git","clone_url":"https://github.com/pgaudit/pgaudit.git","svn_url":"https://github.com/pgaudit/pgaudit","homepage":"","size":308,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3"},"html":{"href":"https://github.com/pgaudit/pgaudit/pull/3"},"issue":{"href":"https://api.github.com/repos/pgaudit/pgaudit/issues/3"},"comments":{"href":"https://api.github.com/repos/pgaudit/pgaudit/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/pgaudit/pgaudit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgaudit/pgaudit/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/pgaudit/pgaudit/statuses/0fa684f6d7ab90485bf95ff50f18b070670f3082"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dwsteele","id":5814217,"avatar_url":"https://avatars.githubusercontent.com/u/5814217?v=3","gravatar_id":"","url":"https://api.github.com/users/dwsteele","html_url":"https://github.com/dwsteele","followers_url":"https://api.github.com/users/dwsteele/followers","following_url":"https://api.github.com/users/dwsteele/following{/other_user}","gists_url":"https://api.github.com/users/dwsteele/gists{/gist_id}","starred_url":"https://api.github.com/users/dwsteele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwsteele/subscriptions","organizations_url":"https://api.github.com/users/dwsteele/orgs","repos_url":"https://api.github.com/users/dwsteele/repos","events_url":"https://api.github.com/users/dwsteele/events{/privacy}","received_events_url":"https://api.github.com/users/dwsteele/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}