From: Kyotaro Horiguchi Date: Tue, 13 Nov 2018 00:27:48 +0000 (+0900) Subject: Fix bogus error handling X-Git-Tag: REL11_1_3_2~6 X-Git-Url: http://git.osdn.net/view?p=pghintplan%2Fpg_hint_plan.git;a=commitdiff_plain;h=18fd79fbb5e98cc8f776e81eb5f075a54411be6f Fix bogus error handling For somewhat reason set_config_int32_options does bogus error handling. Howerver that error cannot be happen, fixed it. --- diff --git a/pg_hint_plan.c b/pg_hint_plan.c index 3c99581..8004d6b 100644 --- a/pg_hint_plan.c +++ b/pg_hint_plan.c @@ -2583,8 +2583,7 @@ set_config_int32_option(const char *name, int32 value, GucContext context) if (snprintf(buf, 16, "%d", value) < 0) { ereport(pg_hint_plan_message_level, - (errmsg ("Cannot set integer value: %d: %s", - max_hint_nworkers, strerror(errno)))); + (errmsg ("Failed to convert integer to string: %d", value))); return false; }