Re: Implicit casts with generic arrays

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: Implicit casts with generic arrays
Дата
Msg-id E1539E0ED7043848906A8FF995BDA579021B3264@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: Implicit casts with generic arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Implicit casts with generic arrays  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
> For example in 8.2 this is mapped to array_prepend:
>
> regression=# select 'x'::text || array['aa','bb','cc'];
>    ?column?
> --------------
>  {x,aa,bb,cc}
> (1 row)
>
> but with the experimental code you get textcat:
>
> catany=# select 'x'::text || array['aa','bb','cc'];
>   ?column?
> -------------
>  x{aa,bb,cc}
> (1 row)

This is what I would have expected || to give, and not what 8.2 does.
So disregarding the rest of the argument I think that array_[pre|ap]pend
should have other operators.

Andreas


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: TOAST usage setting
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Implicit casts with generic arrays