summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0a3456e)
For somewhat reason set_config_int32_options does bogus error
handling. Howerver that error cannot be happen, fixed it.
if (snprintf(buf, 16, "%d", value) < 0)
{
ereport(pg_hint_plan_message_level,
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)));