Re: multiset patch review

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: multiset patch review
Дата
Msg-id 1294842472-sup-230@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: multiset patch review  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Ответы Re: multiset patch review  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Список pgsql-hackers
Excerpts from Itagaki Takahiro's message of mié ene 12 01:52:12 -0300 2011:

> Separate patches for src and doc attached. It includes a few bug fixes
> and cleanup. I changed the error code in trim_array() to
> ERRCODE_ARRAY_ELEMENT_ERROR according to the spec.

Two small nitpicks:

+ static void
+ check_concatinatable(Oid element_type1, Oid element_type2)
+ {
+     if (element_type1 != element_type2)
+         ereport(ERROR,
+                 (errcode(ERRCODE_DATATYPE_MISMATCH),
+                  errmsg("cannot concatenate incompatible arrays"),
+                  errdetail("Arrays with element types %s and %s are not "
+                            "compatible for concatenation.",
+                            format_type_be(element_type1),
+                            format_type_be(element_type2))));
+ }

I think the word is either "concatenable" or "concatenatable".  Also
please don't break up the string in errdetail() even if it's longer than
80 chars.  (The function below this one has this too)

I didn't read the patch in much more detail.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Add support for logging the current role
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: Compatibility GUC for serializable