firtst release
Revision | acbdb5547c8b170abee33ecf44deab4abfa47f26 (tree) |
---|---|
Time | 2018-11-13 15:34:30 |
Author | Kyotaro Horiguchi <horiguchi.kyotaro@lab....> |
Commiter | 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.
@@ -2592,8 +2592,7 @@ set_config_int32_option(const char *name, int32 value, GucContext context) | ||
2592 | 2592 | if (snprintf(buf, 16, "%d", value) < 0) |
2593 | 2593 | { |
2594 | 2594 | ereport(pg_hint_plan_message_level, |
2595 | - (errmsg ("Cannot set integer value: %d: %s", | |
2596 | - max_hint_nworkers, strerror(errno)))); | |
2595 | + (errmsg ("Failed to convert integer to string: %d", value))); | |
2597 | 2596 | return false; |
2598 | 2597 | } |
2599 | 2598 |