Re: array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3
Дата
Msg-id 14986.1229217009@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3  (Greg Stark <greg.stark@enterprisedb.com>)
Список pgsql-sql
Greg Stark <greg.stark@enterprisedb.com> writes:
> Huh, I didn't realize that ever worked in the past. I thought the way  
> to do what the op describes was to cast it to text[] or whatever  
> datatype you from out-of-band knowledge to expect.

We don't seem to allow that either ...

regression=# select array_to_string(histogram_bounds::text[],  '-') from pg_stats where attname = 'unique2' and
tablename= 'tenk1';
 
ERROR:  cannot cast type anyarray to text[]
LINE 1: select array_to_string(histogram_bounds::text[],  '-') from ...                                              ^

        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: array_to_string(anyarray, text) that was working in 8.1 is not working in 8.3