{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/ankane/pgslice/pulls/4","id":91104419,"html_url":"https://github.com/ankane/pgslice/pull/4","diff_url":"https://github.com/ankane/pgslice/pull/4.diff","patch_url":"https://github.com/ankane/pgslice/pull/4.patch","issue_url":"https://api.github.com/repos/ankane/pgslice/issues/4","number":4,"state":"open","locked":false,"title":"Add column_cast; change sql_date to cast based off of pgslice partition column","user":{"login":"richardsmd","id":18726791,"avatar_url":"https://avatars.githubusercontent.com/u/18726791?v=3","gravatar_id":"","url":"https://api.github.com/users/richardsmd","html_url":"https://github.com/richardsmd","followers_url":"https://api.github.com/users/richardsmd/followers","following_url":"https://api.github.com/users/richardsmd/following{/other_user}","gists_url":"https://api.github.com/users/richardsmd/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsmd/subscriptions","organizations_url":"https://api.github.com/users/richardsmd/orgs","repos_url":"https://api.github.com/users/richardsmd/repos","events_url":"https://api.github.com/users/richardsmd/events{/privacy}","received_events_url":"https://api.github.com/users/richardsmd/received_events","type":"User","site_admin":false},"body":"Per #3, added code to introspect `column`. Updated calls to `sql_date` to provide the right cast for timestamp with time zone (per [PG Docs](https://www.postgresql.org/docs/9.4/static/datatype-datetime.html) `timestamptz` is accepted in lieu of `timestamp with time zone`).\r\n\r\nTested results using the same script in the referenced issue, using a 9.3.5 instance.","created_at":"2016-10-26T22:54:33Z","updated_at":"2016-10-26T22:54:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ankane/pgslice/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ankane/pgslice/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ankane/pgslice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ankane/pgslice/issues/4/comments","statuses_url":"https://api.github.com/repos/ankane/pgslice/statuses/26fd43a9bb895b8a5dd881c6e706f9f11193f334","head":{"label":"richardsmd:master","ref":"master","sha":"26fd43a9bb895b8a5dd881c6e706f9f11193f334","user":{"login":"richardsmd","id":18726791,"avatar_url":"https://avatars.githubusercontent.com/u/18726791?v=3","gravatar_id":"","url":"https://api.github.com/users/richardsmd","html_url":"https://github.com/richardsmd","followers_url":"https://api.github.com/users/richardsmd/followers","following_url":"https://api.github.com/users/richardsmd/following{/other_user}","gists_url":"https://api.github.com/users/richardsmd/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsmd/subscriptions","organizations_url":"https://api.github.com/users/richardsmd/orgs","repos_url":"https://api.github.com/users/richardsmd/repos","events_url":"https://api.github.com/users/richardsmd/events{/privacy}","received_events_url":"https://api.github.com/users/richardsmd/received_events","type":"User","site_admin":false},"repo":{"id":72038183,"name":"pgslice","full_name":"richardsmd/pgslice","owner":{"login":"richardsmd","id":18726791,"avatar_url":"https://avatars.githubusercontent.com/u/18726791?v=3","gravatar_id":"","url":"https://api.github.com/users/richardsmd","html_url":"https://github.com/richardsmd","followers_url":"https://api.github.com/users/richardsmd/followers","following_url":"https://api.github.com/users/richardsmd/following{/other_user}","gists_url":"https://api.github.com/users/richardsmd/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsmd/subscriptions","organizations_url":"https://api.github.com/users/richardsmd/orgs","repos_url":"https://api.github.com/users/richardsmd/repos","events_url":"https://api.github.com/users/richardsmd/events{/privacy}","received_events_url":"https://api.github.com/users/richardsmd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/richardsmd/pgslice","description":"Postgres partitioning as easy as pie","fork":true,"url":"https://api.github.com/repos/richardsmd/pgslice","forks_url":"https://api.github.com/repos/richardsmd/pgslice/forks","keys_url":"https://api.github.com/repos/richardsmd/pgslice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/richardsmd/pgslice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/richardsmd/pgslice/teams","hooks_url":"https://api.github.com/repos/richardsmd/pgslice/hooks","issue_events_url":"https://api.github.com/repos/richardsmd/pgslice/issues/events{/number}","events_url":"https://api.github.com/repos/richardsmd/pgslice/events","assignees_url":"https://api.github.com/repos/richardsmd/pgslice/assignees{/user}","branches_url":"https://api.github.com/repos/richardsmd/pgslice/branches{/branch}","tags_url":"https://api.github.com/repos/richardsmd/pgslice/tags","blobs_url":"https://api.github.com/repos/richardsmd/pgslice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/richardsmd/pgslice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/richardsmd/pgslice/git/refs{/sha}","trees_url":"https://api.github.com/repos/richardsmd/pgslice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/richardsmd/pgslice/statuses/{sha}","languages_url":"https://api.github.com/repos/richardsmd/pgslice/languages","stargazers_url":"https://api.github.com/repos/richardsmd/pgslice/stargazers","contributors_url":"https://api.github.com/repos/richardsmd/pgslice/contributors","subscribers_url":"https://api.github.com/repos/richardsmd/pgslice/subscribers","subscription_url":"https://api.github.com/repos/richardsmd/pgslice/subscription","commits_url":"https://api.github.com/repos/richardsmd/pgslice/commits{/sha}","git_commits_url":"https://api.github.com/repos/richardsmd/pgslice/git/commits{/sha}","comments_url":"https://api.github.com/repos/richardsmd/pgslice/comments{/number}","issue_comment_url":"https://api.github.com/repos/richardsmd/pgslice/issues/comments{/number}","contents_url":"https://api.github.com/repos/richardsmd/pgslice/contents/{+path}","compare_url":"https://api.github.com/repos/richardsmd/pgslice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/richardsmd/pgslice/merges","archive_url":"https://api.github.com/repos/richardsmd/pgslice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/richardsmd/pgslice/downloads","issues_url":"https://api.github.com/repos/richardsmd/pgslice/issues{/number}","pulls_url":"https://api.github.com/repos/richardsmd/pgslice/pulls{/number}","milestones_url":"https://api.github.com/repos/richardsmd/pgslice/milestones{/number}","notifications_url":"https://api.github.com/repos/richardsmd/pgslice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/richardsmd/pgslice/labels{/name}","releases_url":"https://api.github.com/repos/richardsmd/pgslice/releases{/id}","deployments_url":"https://api.github.com/repos/richardsmd/pgslice/deployments","created_at":"2016-10-26T19:40:00Z","updated_at":"2016-10-26T19:40:01Z","pushed_at":"2016-10-26T22:44:56Z","git_url":"git://github.com/richardsmd/pgslice.git","ssh_url":"git@github.com:richardsmd/pgslice.git","clone_url":"https://github.com/richardsmd/pgslice.git","svn_url":"https://github.com/richardsmd/pgslice","homepage":"","size":58,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ankane:master","ref":"master","sha":"939a126c297f5d5b739810663d124ed805448ab6","user":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"repo":{"id":56999385,"name":"pgslice","full_name":"ankane/pgslice","owner":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ankane/pgslice","description":"Postgres partitioning as easy as pie","fork":false,"url":"https://api.github.com/repos/ankane/pgslice","forks_url":"https://api.github.com/repos/ankane/pgslice/forks","keys_url":"https://api.github.com/repos/ankane/pgslice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ankane/pgslice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ankane/pgslice/teams","hooks_url":"https://api.github.com/repos/ankane/pgslice/hooks","issue_events_url":"https://api.github.com/repos/ankane/pgslice/issues/events{/number}","events_url":"https://api.github.com/repos/ankane/pgslice/events","assignees_url":"https://api.github.com/repos/ankane/pgslice/assignees{/user}","branches_url":"https://api.github.com/repos/ankane/pgslice/branches{/branch}","tags_url":"https://api.github.com/repos/ankane/pgslice/tags","blobs_url":"https://api.github.com/repos/ankane/pgslice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ankane/pgslice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ankane/pgslice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ankane/pgslice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ankane/pgslice/statuses/{sha}","languages_url":"https://api.github.com/repos/ankane/pgslice/languages","stargazers_url":"https://api.github.com/repos/ankane/pgslice/stargazers","contributors_url":"https://api.github.com/repos/ankane/pgslice/contributors","subscribers_url":"https://api.github.com/repos/ankane/pgslice/subscribers","subscription_url":"https://api.github.com/repos/ankane/pgslice/subscription","commits_url":"https://api.github.com/repos/ankane/pgslice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ankane/pgslice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ankane/pgslice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ankane/pgslice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ankane/pgslice/contents/{+path}","compare_url":"https://api.github.com/repos/ankane/pgslice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ankane/pgslice/merges","archive_url":"https://api.github.com/repos/ankane/pgslice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ankane/pgslice/downloads","issues_url":"https://api.github.com/repos/ankane/pgslice/issues{/number}","pulls_url":"https://api.github.com/repos/ankane/pgslice/pulls{/number}","milestones_url":"https://api.github.com/repos/ankane/pgslice/milestones{/number}","notifications_url":"https://api.github.com/repos/ankane/pgslice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ankane/pgslice/labels{/name}","releases_url":"https://api.github.com/repos/ankane/pgslice/releases{/id}","deployments_url":"https://api.github.com/repos/ankane/pgslice/deployments","created_at":"2016-04-24T23:40:03Z","updated_at":"2016-10-25T11:48:54Z","pushed_at":"2016-10-26T22:54:33Z","git_url":"git://github.com/ankane/pgslice.git","ssh_url":"git@github.com:ankane/pgslice.git","clone_url":"https://github.com/ankane/pgslice.git","svn_url":"https://github.com/ankane/pgslice","homepage":"","size":58,"stargazers_count":424,"watchers_count":424,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":2,"forks":14,"open_issues":2,"watchers":424,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ankane/pgslice/pulls/4"},"html":{"href":"https://github.com/ankane/pgslice/pull/4"},"issue":{"href":"https://api.github.com/repos/ankane/pgslice/issues/4"},"comments":{"href":"https://api.github.com/repos/ankane/pgslice/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ankane/pgslice/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ankane/pgslice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ankane/pgslice/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ankane/pgslice/statuses/26fd43a9bb895b8a5dd881c6e706f9f11193f334"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":6,"changed_files":1}}
{"actor":{"display_login":"richardsmd"}}