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-412. Allocate query resource for...
Date Wed, 17 Feb 2016 07:57:07 GMT
Github user wangzw commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/345#discussion_r53130491
  
    --- Diff: src/backend/cdb/cdbdatalocality.c ---
    @@ -3967,6 +4001,18 @@ calculate_planner_segment_num(Query *query, QueryResourceLife resourceLife,
     
     	init_datalocality_context(&context);
     
    +	/*
    +	 * Initialize QueryResourceParameters in QD
    +	 *
    +	 * We use TopMemoryContext here so that the QueryResourceParameter
    +	 * can be available in the session. Thus, it can be used in multiple
    +	 * "EXECUTION"s of the prepared statement (i.e., "PREPARE", "BIND",
    +	 * "EXECUTION"
    +	 */
    +	MemoryContext oldcontext = MemoryContextSwitchTo(TopMemoryContext);
    --- End diff --
    
    TopMemoryContext has only 8kB. You will get trouble to store information in it.


---
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.
---

Mime
View raw message