firtst release
Revision | b27943be1bae28f596d70e30c563b52406ed4481 (tree) |
---|---|
Zeit | 2014-12-22 20:51:09 |
Autor | Kyotaro Horiguchi <horiguchi.kyotaro@lab....> |
Commiter | Kyotaro Horiguchi |
Fix the method to write query number in debug print.
Query numbers in debug output should be written using qnostr, not qno.
@@ -1134,12 +1134,12 @@ HintStateDump2(HintState *hstate) | ||
1134 | 1134 | if (!hstate) |
1135 | 1135 | { |
1136 | 1136 | elog(pg_hint_plan_message_level, |
1137 | - "pg_hint_plan[qno=0x%x]: HintStateDump:\nno hint", qno); | |
1137 | + "pg_hint_plan%s: HintStateDump:\nno hint", qnostr); | |
1138 | 1138 | return; |
1139 | 1139 | } |
1140 | 1140 | |
1141 | 1141 | initStringInfo(&buf); |
1142 | - appendStringInfo(&buf, "pg_hint_plan[qno=0x%x]: HintStateDump: ", qno); | |
1142 | + appendStringInfo(&buf, "pg_hint_plan%s: HintStateDump: ", qnostr); | |
1143 | 1143 | desc_hint_in_state(hstate, &buf, "{used hints", HINT_STATE_USED, true); |
1144 | 1144 | desc_hint_in_state(hstate, &buf, "}, {not used hints", HINT_STATE_NOTUSED, true); |
1145 | 1145 | desc_hint_in_state(hstate, &buf, "}, {duplicate hints", HINT_STATE_DUPLICATION, true); |