{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5","id":36339098,"html_url":"https://github.com/jtornero/pivotmytable/pull/5","diff_url":"https://github.com/jtornero/pivotmytable/pull/5.diff","patch_url":"https://github.com/jtornero/pivotmytable/pull/5.patch","issue_url":"https://api.github.com/repos/jtornero/pivotmytable/issues/5","number":5,"state":"open","locked":false,"title":"Allow materialized views as input table to pivot","user":{"login":"JohnDeGitt","id":12176426,"avatar_url":"https://avatars.githubusercontent.com/u/12176426?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnDeGitt","html_url":"https://github.com/JohnDeGitt","followers_url":"https://api.github.com/users/JohnDeGitt/followers","following_url":"https://api.github.com/users/JohnDeGitt/following{/other_user}","gists_url":"https://api.github.com/users/JohnDeGitt/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnDeGitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnDeGitt/subscriptions","organizations_url":"https://api.github.com/users/JohnDeGitt/orgs","repos_url":"https://api.github.com/users/JohnDeGitt/repos","events_url":"https://api.github.com/users/JohnDeGitt/events{/privacy}","received_events_url":"https://api.github.com/users/JohnDeGitt/received_events","type":"User","site_admin":false},"body":"Use pg_attribute (Postgresql catalog table) instead of\r\ninformation_schema to get metadata on Postgresql relations. It is\r\nfaster and contains details about all relations: tables, views and\r\nmaterialized views. Closes #4.\r\n\r\nUse current_schema() as a relation name prefix to make sure\r\nthat it refers current schema (the same names can exist in different\r\nschemas).","created_at":"2015-05-27T19:22:24Z","updated_at":"2015-05-27T19:22:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jtornero/pivotmytable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jtornero/pivotmytable/issues/5/comments","statuses_url":"https://api.github.com/repos/jtornero/pivotmytable/statuses/667671c924329a704aa81b4e8a1a5af97b9a14e1","head":{"label":"JohnDeGitt:4-allow-materialized-views-as-input-table-to-pivot","ref":"4-allow-materialized-views-as-input-table-to-pivot","sha":"667671c924329a704aa81b4e8a1a5af97b9a14e1","user":{"login":"JohnDeGitt","id":12176426,"avatar_url":"https://avatars.githubusercontent.com/u/12176426?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnDeGitt","html_url":"https://github.com/JohnDeGitt","followers_url":"https://api.github.com/users/JohnDeGitt/followers","following_url":"https://api.github.com/users/JohnDeGitt/following{/other_user}","gists_url":"https://api.github.com/users/JohnDeGitt/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnDeGitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnDeGitt/subscriptions","organizations_url":"https://api.github.com/users/JohnDeGitt/orgs","repos_url":"https://api.github.com/users/JohnDeGitt/repos","events_url":"https://api.github.com/users/JohnDeGitt/events{/privacy}","received_events_url":"https://api.github.com/users/JohnDeGitt/received_events","type":"User","site_admin":false},"repo":{"id":36385474,"name":"pivotmytable","full_name":"JohnDeGitt/pivotmytable","owner":{"login":"JohnDeGitt","id":12176426,"avatar_url":"https://avatars.githubusercontent.com/u/12176426?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnDeGitt","html_url":"https://github.com/JohnDeGitt","followers_url":"https://api.github.com/users/JohnDeGitt/followers","following_url":"https://api.github.com/users/JohnDeGitt/following{/other_user}","gists_url":"https://api.github.com/users/JohnDeGitt/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnDeGitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnDeGitt/subscriptions","organizations_url":"https://api.github.com/users/JohnDeGitt/orgs","repos_url":"https://api.github.com/users/JohnDeGitt/repos","events_url":"https://api.github.com/users/JohnDeGitt/events{/privacy}","received_events_url":"https://api.github.com/users/JohnDeGitt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnDeGitt/pivotmytable","description":"PivotMyTable is a PL/Python PosgreSQL function for easy construction of pivot tables, generating the proper code for the crosstab functions from the PostgreSQL extension tablefunc to work.","fork":true,"url":"https://api.github.com/repos/JohnDeGitt/pivotmytable","forks_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/forks","keys_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/teams","hooks_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/hooks","issue_events_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/issues/events{/number}","events_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/events","assignees_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/assignees{/user}","branches_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/branches{/branch}","tags_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/tags","blobs_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/languages","stargazers_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/stargazers","contributors_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/contributors","subscribers_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/subscribers","subscription_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/subscription","commits_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/issues/comments{/number}","contents_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/contents/{+path}","compare_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/merges","archive_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/downloads","issues_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/issues{/number}","pulls_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/labels{/name}","releases_url":"https://api.github.com/repos/JohnDeGitt/pivotmytable/releases{/id}","created_at":"2015-05-27T17:57:17Z","updated_at":"2015-05-27T17:57:18Z","pushed_at":"2015-05-27T19:19:32Z","git_url":"git://github.com/JohnDeGitt/pivotmytable.git","ssh_url":"git@github.com:JohnDeGitt/pivotmytable.git","clone_url":"https://github.com/JohnDeGitt/pivotmytable.git","svn_url":"https://github.com/JohnDeGitt/pivotmytable","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"PLpgSQL","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":"master"}},"base":{"label":"jtornero:master","ref":"master","sha":"2dab1bb22f1238220abfd2a8feea6153058e3cae","user":{"login":"jtornero","id":4236093,"avatar_url":"https://avatars.githubusercontent.com/u/4236093?v=3","gravatar_id":"","url":"https://api.github.com/users/jtornero","html_url":"https://github.com/jtornero","followers_url":"https://api.github.com/users/jtornero/followers","following_url":"https://api.github.com/users/jtornero/following{/other_user}","gists_url":"https://api.github.com/users/jtornero/gists{/gist_id}","starred_url":"https://api.github.com/users/jtornero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtornero/subscriptions","organizations_url":"https://api.github.com/users/jtornero/orgs","repos_url":"https://api.github.com/users/jtornero/repos","events_url":"https://api.github.com/users/jtornero/events{/privacy}","received_events_url":"https://api.github.com/users/jtornero/received_events","type":"User","site_admin":false},"repo":{"id":16391195,"name":"pivotmytable","full_name":"jtornero/pivotmytable","owner":{"login":"jtornero","id":4236093,"avatar_url":"https://avatars.githubusercontent.com/u/4236093?v=3","gravatar_id":"","url":"https://api.github.com/users/jtornero","html_url":"https://github.com/jtornero","followers_url":"https://api.github.com/users/jtornero/followers","following_url":"https://api.github.com/users/jtornero/following{/other_user}","gists_url":"https://api.github.com/users/jtornero/gists{/gist_id}","starred_url":"https://api.github.com/users/jtornero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtornero/subscriptions","organizations_url":"https://api.github.com/users/jtornero/orgs","repos_url":"https://api.github.com/users/jtornero/repos","events_url":"https://api.github.com/users/jtornero/events{/privacy}","received_events_url":"https://api.github.com/users/jtornero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jtornero/pivotmytable","description":"PivotMyTable is a PL/Python PosgreSQL function for easy construction of pivot tables, generating the proper code for the crosstab functions from the PostgreSQL extension tablefunc to work.","fork":false,"url":"https://api.github.com/repos/jtornero/pivotmytable","forks_url":"https://api.github.com/repos/jtornero/pivotmytable/forks","keys_url":"https://api.github.com/repos/jtornero/pivotmytable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jtornero/pivotmytable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jtornero/pivotmytable/teams","hooks_url":"https://api.github.com/repos/jtornero/pivotmytable/hooks","issue_events_url":"https://api.github.com/repos/jtornero/pivotmytable/issues/events{/number}","events_url":"https://api.github.com/repos/jtornero/pivotmytable/events","assignees_url":"https://api.github.com/repos/jtornero/pivotmytable/assignees{/user}","branches_url":"https://api.github.com/repos/jtornero/pivotmytable/branches{/branch}","tags_url":"https://api.github.com/repos/jtornero/pivotmytable/tags","blobs_url":"https://api.github.com/repos/jtornero/pivotmytable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jtornero/pivotmytable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jtornero/pivotmytable/git/refs{/sha}","trees_url":"https://api.github.com/repos/jtornero/pivotmytable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jtornero/pivotmytable/statuses/{sha}","languages_url":"https://api.github.com/repos/jtornero/pivotmytable/languages","stargazers_url":"https://api.github.com/repos/jtornero/pivotmytable/stargazers","contributors_url":"https://api.github.com/repos/jtornero/pivotmytable/contributors","subscribers_url":"https://api.github.com/repos/jtornero/pivotmytable/subscribers","subscription_url":"https://api.github.com/repos/jtornero/pivotmytable/subscription","commits_url":"https://api.github.com/repos/jtornero/pivotmytable/commits{/sha}","git_commits_url":"https://api.github.com/repos/jtornero/pivotmytable/git/commits{/sha}","comments_url":"https://api.github.com/repos/jtornero/pivotmytable/comments{/number}","issue_comment_url":"https://api.github.com/repos/jtornero/pivotmytable/issues/comments{/number}","contents_url":"https://api.github.com/repos/jtornero/pivotmytable/contents/{+path}","compare_url":"https://api.github.com/repos/jtornero/pivotmytable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jtornero/pivotmytable/merges","archive_url":"https://api.github.com/repos/jtornero/pivotmytable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jtornero/pivotmytable/downloads","issues_url":"https://api.github.com/repos/jtornero/pivotmytable/issues{/number}","pulls_url":"https://api.github.com/repos/jtornero/pivotmytable/pulls{/number}","milestones_url":"https://api.github.com/repos/jtornero/pivotmytable/milestones{/number}","notifications_url":"https://api.github.com/repos/jtornero/pivotmytable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jtornero/pivotmytable/labels{/name}","releases_url":"https://api.github.com/repos/jtornero/pivotmytable/releases{/id}","created_at":"2014-01-30T21:17:43Z","updated_at":"2015-04-08T12:00:55Z","pushed_at":"2015-05-27T19:22:24Z","git_url":"git://github.com/jtornero/pivotmytable.git","ssh_url":"git@github.com:jtornero/pivotmytable.git","clone_url":"https://github.com/jtornero/pivotmytable.git","svn_url":"https://github.com/jtornero/pivotmytable","homepage":null,"size":204,"stargazers_count":4,"watchers_count":4,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5"},"html":{"href":"https://github.com/jtornero/pivotmytable/pull/5"},"issue":{"href":"https://api.github.com/repos/jtornero/pivotmytable/issues/5"},"comments":{"href":"https://api.github.com/repos/jtornero/pivotmytable/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jtornero/pivotmytable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jtornero/pivotmytable/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jtornero/pivotmytable/statuses/667671c924329a704aa81b4e8a1a5af97b9a14e1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":6,"changed_files":1}}