リビジョン | d11ab492704c6cd0687b6b33197bde6b187c4061 (tree) |
---|---|
日時 | 2018-11-13 16:23:45 |
作者 | Kyotaro Horiguchi <horiguchi.kyotaro@lab....> |
コミッター | Kyotaro Horiguchi |
Fix bogus error handling
For somewhat reason set_config_int32_options does bogus error
handling. Howerver that error cannot be happen, fixed it.
@@ -2595,8 +2595,7 @@ set_config_int32_option(const char *name, int32 value, GucContext context) | ||
2595 | 2595 | if (snprintf(buf, 16, "%d", value) < 0) |
2596 | 2596 | { |
2597 | 2597 | ereport(pg_hint_plan_message_level, |
2598 | - (errmsg ("Cannot set integer value: %d: %s", | |
2599 | - max_hint_nworkers, strerror(errno)))); | |
2598 | + (errmsg ("Failed to convert integer to string: %d", value))); | |
2600 | 2599 | return false; |
2601 | 2600 | } |
2602 | 2601 |