Re: array support patch phase 1 patch
От | Tom Lane |
---|---|
Тема | Re: array support patch phase 1 patch |
Дата | |
Msg-id | 26678.1054480253@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: array support patch phase 1 patch (Joe Conway <mail@joeconway.com>) |
Ответы |
Re: array support patch phase 1 patch
Re: array support patch phase 1 patch |
Список | pgsql-patches |
Joe Conway <mail@joeconway.com> writes: > + /* last check -- polymorphic types? */ > + if (IsPolymorphicCoercible(arg1 , arg2)) > + return optup; That is surely not what you intended. The test must be whether arg1 and arg2 are (separately) coercible to the operator's two input types. Moreover, the test must not be symmetric, any more than IsBinaryCoercible is. You can coerce int[] to ANYARRAY but not vice versa. A bigger problem is that I doubt this will actually work. Most of the places that call compatible_oper will then proceed to call the function from specialized code that does not bother with consing up an expression tree --- so a polymorphic function is going to fail anyway... regards, tom lane
В списке pgsql-patches по дате отправления: