• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revisionacbdb5547c8b170abee33ecf44deab4abfa47f26 (tree)
Time2018-11-13 15:34:30
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
@@ -2592,8 +2592,7 @@ set_config_int32_option(const char *name, int32 value, GucContext context)
25922592 if (snprintf(buf, 16, "%d", value) < 0)
25932593 {
25942594 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)));
25972596 return false;
25982597 }
25992598
Show on old repository browser