{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/48393686","id":48393686,"diff_hunk":"@@ -1645,7 +1645,7 @@ exec_simple_query(const char *query_string, const char *seqServerHost, int seqSe\n \t\tquerytree_list = pg_analyze_and_rewrite(parsetree, query_string,\n \t\t\t\t\t\t\t\t\t\t\t\tNULL, 0);\n \n-\t\tplantree_list = pg_plan_queries(querytree_list, NULL, false, QRL_ONCE);\n+\t\tplantree_list = pg_plan_queries(querytree_list, NULL, true, QRL_ONCE);\n ","path":"src/backend/tcop/postgres.c","position":6,"original_position":6,"commit_id":"a5b8c0af402d120895997da2686fc207b3cae22f","original_commit_id":"a5b8c0af402d120895997da2686fc207b3cae22f","user":{"login":"wangzw","id":1254826,"avatar_url":"https://avatars.githubusercontent.com/u/1254826?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzw","html_url":"https://github.com/wangzw","followers_url":"https://api.github.com/users/wangzw/followers","following_url":"https://api.github.com/users/wangzw/following{/other_user}","gists_url":"https://api.github.com/users/wangzw/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzw/subscriptions","organizations_url":"https://api.github.com/users/wangzw/orgs","repos_url":"https://api.github.com/users/wangzw/repos","events_url":"https://api.github.com/users/wangzw/events{/privacy}","received_events_url":"https://api.github.com/users/wangzw/received_events","type":"User","site_admin":false},"body":"It's not right\r\n```\r\nA snapshot must be set before invoking the planner, since it\r\n * might try to evaluate user-defined functions.  But we must not set a\r\n * snapshot if the list contains only utility statements, because some\r\n * utility statements depend on not having frozen the snapshot yet.\r\n```\r\n\r\nSnapshot for plannable statement was set before, see line 1631. ","created_at":"2015-12-24T03:08:27Z","updated_at":"2015-12-24T03:08:27Z","html_url":"https://github.com/apache/incubator-hawq/pull/211#discussion_r48393686","pull_request_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/48393686"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/211#discussion_r48393686"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/211","id":54457005,"html_url":"https://github.com/apache/incubator-hawq/pull/211","diff_url":"https://github.com/apache/incubator-hawq/pull/211.diff","patch_url":"https://github.com/apache/incubator-hawq/pull/211.patch","issue_url":"https://api.github.com/repos/apache/incubator-hawq/issues/211","number":211,"state":"open","locked":false,"title":"HAWQ-273. Need re-fetch snapshot at planning stage","user":{"login":"liming01","id":1654299,"avatar_url":"https://avatars.githubusercontent.com/u/1654299?v=3","gravatar_id":"","url":"https://api.github.com/users/liming01","html_url":"https://github.com/liming01","followers_url":"https://api.github.com/users/liming01/followers","following_url":"https://api.github.com/users/liming01/following{/other_user}","gists_url":"https://api.github.com/users/liming01/gists{/gist_id}","starred_url":"https://api.github.com/users/liming01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liming01/subscriptions","organizations_url":"https://api.github.com/users/liming01/orgs","repos_url":"https://api.github.com/users/liming01/repos","events_url":"https://api.github.com/users/liming01/events{/privacy}","received_events_url":"https://api.github.com/users/liming01/received_events","type":"User","site_admin":false},"body":"Because data locality and hdfs metadata cache will fetch pg_aoseg meta data when planning, we need to re-fetch the latest snapshot.","created_at":"2015-12-23T10:31:59Z","updated_at":"2015-12-24T03:08:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a388e05c47cd0dee892dd37f6ccf8bfa482d58ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/211/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/211/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/issues/211/comments","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/a5b8c0af402d120895997da2686fc207b3cae22f","head":{"label":"liming01:mli/tx_alttbl_sel","ref":"mli/tx_alttbl_sel","sha":"a5b8c0af402d120895997da2686fc207b3cae22f","user":{"login":"liming01","id":1654299,"avatar_url":"https://avatars.githubusercontent.com/u/1654299?v=3","gravatar_id":"","url":"https://api.github.com/users/liming01","html_url":"https://github.com/liming01","followers_url":"https://api.github.com/users/liming01/followers","following_url":"https://api.github.com/users/liming01/following{/other_user}","gists_url":"https://api.github.com/users/liming01/gists{/gist_id}","starred_url":"https://api.github.com/users/liming01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liming01/subscriptions","organizations_url":"https://api.github.com/users/liming01/orgs","repos_url":"https://api.github.com/users/liming01/repos","events_url":"https://api.github.com/users/liming01/events{/privacy}","received_events_url":"https://api.github.com/users/liming01/received_events","type":"User","site_admin":false},"repo":{"id":43873942,"name":"incubator-hawq","full_name":"liming01/incubator-hawq","owner":{"login":"liming01","id":1654299,"avatar_url":"https://avatars.githubusercontent.com/u/1654299?v=3","gravatar_id":"","url":"https://api.github.com/users/liming01","html_url":"https://github.com/liming01","followers_url":"https://api.github.com/users/liming01/followers","following_url":"https://api.github.com/users/liming01/following{/other_user}","gists_url":"https://api.github.com/users/liming01/gists{/gist_id}","starred_url":"https://api.github.com/users/liming01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liming01/subscriptions","organizations_url":"https://api.github.com/users/liming01/orgs","repos_url":"https://api.github.com/users/liming01/repos","events_url":"https://api.github.com/users/liming01/events{/privacy}","received_events_url":"https://api.github.com/users/liming01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liming01/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":true,"url":"https://api.github.com/repos/liming01/incubator-hawq","forks_url":"https://api.github.com/repos/liming01/incubator-hawq/forks","keys_url":"https://api.github.com/repos/liming01/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liming01/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liming01/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/liming01/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/liming01/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/liming01/incubator-hawq/events","assignees_url":"https://api.github.com/repos/liming01/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/liming01/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/liming01/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/liming01/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liming01/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liming01/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/liming01/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liming01/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/liming01/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/liming01/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/liming01/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/liming01/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/liming01/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/liming01/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/liming01/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/liming01/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/liming01/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/liming01/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/liming01/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liming01/incubator-hawq/merges","archive_url":"https://api.github.com/repos/liming01/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liming01/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/liming01/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/liming01/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/liming01/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/liming01/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liming01/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/liming01/incubator-hawq/releases{/id}","created_at":"2015-10-08T08:34:46Z","updated_at":"2015-10-08T08:35:17Z","pushed_at":"2015-12-23T10:28:59Z","git_url":"git://github.com/liming01/incubator-hawq.git","ssh_url":"git@github.com:liming01/incubator-hawq.git","clone_url":"https://github.com/liming01/incubator-hawq.git","svn_url":"https://github.com/liming01/incubator-hawq","homepage":null,"size":40989,"stargazers_count":0,"watchers_count":0,"language":"C","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":"apache:master","ref":"master","sha":"e435f414645589855834fdd2f19ee1f7588d89bc","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":41952293,"name":"incubator-hawq","full_name":"apache/incubator-hawq","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq","forks_url":"https://api.github.com/repos/apache/incubator-hawq/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq/releases{/id}","created_at":"2015-09-05T07:00:05Z","updated_at":"2015-12-21T02:46:45Z","pushed_at":"2015-12-24T02:44:25Z","git_url":"git://github.com/apache/incubator-hawq.git","ssh_url":"git@github.com:apache/incubator-hawq.git","clone_url":"https://github.com/apache/incubator-hawq.git","svn_url":"https://github.com/apache/incubator-hawq","homepage":null,"size":146409,"stargazers_count":91,"watchers_count":91,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":"git://git.apache.org/incubator-hawq.git","open_issues_count":5,"forks":82,"open_issues":5,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/211"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/211"},"issue":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/211"},"comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-hawq/statuses/a5b8c0af402d120895997da2686fc207b3cae22f"}}}}