• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

リビジョン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.

変更サマリ

差分

--- 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
旧リポジトリブラウザで表示