hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangzw <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: HAWQ-273. Need re-fetch snapshot at p...
Date Thu, 24 Dec 2015 03:08:29 GMT
Github user wangzw commented on a diff in the pull request:

    --- Diff: src/backend/tcop/postgres.c ---
    @@ -1645,7 +1645,7 @@ exec_simple_query(const char *query_string, const char *seqServerHost,
int seqSe
     		querytree_list = pg_analyze_and_rewrite(parsetree, query_string,
     												NULL, 0);
    -		plantree_list = pg_plan_queries(querytree_list, NULL, false, QRL_ONCE);
    +		plantree_list = pg_plan_queries(querytree_list, NULL, true, QRL_ONCE);
    --- End diff --
    It's not right
    A snapshot must be set before invoking the planner, since it
     * might try to evaluate user-defined functions.  But we must not set a
     * snapshot if the list contains only utility statements, because some
     * utility statements depend on not having frozen the snapshot yet.
    Snapshot for plannable statement was set before, see line 1631. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message