Re: manipulating anyarray columns

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: manipulating anyarray columns
Дата
Msg-id 4FA8336A.1090504@fuzzy.cz
обсуждение исходный текст
Ответ на manipulating anyarray columns  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-general
On 6.5.2012 16:41, Jov wrote:
> I find this work:
>
> SELECT (most_common_vals::varchar::varchar[])[1:3]
>  FROM pg_stats
>  WHERE tablename = 'pg_attribute' AND attname = 'attname';
>
> I try cast anyarray to varchar[] directly but failed,do'nt know why pg
> not support the cast.

IMHO this is exactly what I did, except that I casted the array to
string and back by calling functions (array_to_string/string_to_array)
and you did that by casting.

Tomas

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Use LISTEN/NOTIFY between different databases
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Use LISTEN/NOTIFY between different databases