• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revisiond11ab492704c6cd0687b6b33197bde6b187c4061 (tree)
Time2018-11-13 16:23:45
AuthorKyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Log Message

Fix bogus error handling

For somewhat reason set_config_int32_options does bogus error
handling. Howerver that error cannot be happen, fixed it.

Change Summary

Incremental Difference

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -2595,8 +2595,7 @@ set_config_int32_option(const char *name, int32 value, GucContext context)
25952595 if (snprintf(buf, 16, "%d", value) < 0)
25962596 {
25972597 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)));
26002599 return false;
26012600 }
26022601
Show on old repository browser