Re: multiset patch review

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: multiset patch review
Дата
Msg-id AANLkTi=oTXK==+AWH9tTrVNz281qOFXbXiHgEGhwK16d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: multiset patch review  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
2011/1/12 Pavel Stehule <pavel.stehule@gmail.com>:
> 2011/1/12 Itagaki Takahiro <itagaki.takahiro@gmail.com>:
>> On Wed, Jan 12, 2011 at 20:18, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>>> there is one issue - probably useless checking a type equality in
>>> function check_comparable and check_concatinatable, because when your
>>> function is registrated with arguments (anyarray, anyarray), then is
>>> guaranteed so type of array1 is same as type of array2, and then you
>>> don't need to check.
>>
>> It's true for almost all cases, but we have "anyarray" columns in
>> pg_statistic.stavaluesN. When we pass them to those array functions,
>> element types of two anyarrays could be different.
>> I guess they are protections only for them.
>>
>> =# SELECT A.stavalues1 SUBMULTISET OF B.stavalues1
>>   FROM pg_statistic A, pg_statistic B
>>   WHERE A.stakind1 = 2 AND B.stakind1 = 2;
>> ERROR:  cannot compare incompatible arrays
>> DETAIL:  Arrays with element types name and oid[] are not compatible
>> for comparison.
>>
>
> ook

so I think it is ready for commit

Regards

Pavel Stehule
>
> Pavel
>
>> --
>> Itagaki Takahiro
>>
>


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

Предыдущее
От: Shigeru HANADA
Дата:
Сообщение: SQL/MED - FDW API
Следующее
От: Dan Ports
Дата:
Сообщение: Re: SSI and 2PC