firtst release
修訂 | 1d935d6269fa811dd39f07bd95989c692f80bc79 (tree) |
---|---|
時間 | 2019-03-08 14:04:33 |
作者 | Kyotaro Horiguchi <horiguchi.kyotaro@lab....> |
Commiter | Kyotaro Horiguchi |
Silence some compilers
Some compilers seem to complain about the previous patch, that
prev_hint_str is used uninitialized. Actually it is not but move the
initialization code out of the PG_TRY() section so that such compilers
would be quiet.
@@ -3078,19 +3078,19 @@ pg_hint_plan_planner(Query *parse, int cursorOptions, ParamListInfo boundParams) | ||
3078 | 3078 | } |
3079 | 3079 | |
3080 | 3080 | /* |
3081 | + * The planner call below may replace current_hint_str. Store and restore | |
3082 | + * it so that the subsequent planning in the upper level doesn't get | |
3083 | + * confused. | |
3084 | + */ | |
3085 | + recurse_level++; | |
3086 | + prev_hint_str = current_hint_str; | |
3087 | + | |
3088 | + /* | |
3081 | 3089 | * Use PG_TRY mechanism to recover GUC parameters and current_hint_state to |
3082 | 3090 | * the state when this planner started when error occurred in planner. |
3083 | 3091 | */ |
3084 | 3092 | PG_TRY(); |
3085 | 3093 | { |
3086 | - /* | |
3087 | - * The planner call below may replace current_hint_str. Store and | |
3088 | - * restore it so that the subsequent planning in the upper level | |
3089 | - * doesn't get confused. | |
3090 | - */ | |
3091 | - recurse_level++; | |
3092 | - prev_hint_str = current_hint_str; | |
3093 | - | |
3094 | 3094 | if (prev_planner) |
3095 | 3095 | result = (*prev_planner) (parse, cursorOptions, boundParams); |
3096 | 3096 | else |