引数で受け取った文字列の先頭文字を大文字に変換してからメッセージ
出力するようにした。
/*+Leading( */
EXPLAIN (COSTS false) SELECT * FROM t1, t2, t3, t4 WHERE t1.id = t2.id AND t1.id = t3.id AND t1.id = t4.id;
INFO: hint syntax error at or near ""
-DETAIL: relation name is necessary.
+DETAIL: Relation name is necessary.
QUERY PLAN
--------------------------------------------------
Merge Join
if (buf.len == 0)
{
+ char *type;
+
+ type = pstrdup(value_type);
+ type[0] = toupper(type[0]);
+ parse_ereport(str, ("%s is necessary.", type));
+
pfree(buf.data);
- parse_ereport(str, ("%s is necessary.", value_type));
+ pfree(type);
+
return NULL;
}