Question about casts

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Question about casts
Дата
Msg-id 446C959A.10208@tada.se
обсуждение исходный текст
Ответы Re: Question about casts
Список pgsql-hackers
Just out of curiosity (and most likely, ignorance). Why can't I cast an 
array of strings into a string? I.e.
 thhal=# select ('{"a","b"}'::varchar[])::varchar; ERROR:  cannot cast type character varying[] to character varying

or a cstring into a varchar, i.e.
 thhal=# select array_out('{"a","b"}'::varchar[])::varchar; ERROR:  cannot cast type cstring to character varying

ISTM, the implementation of such casts should be fairly simple and 
straight forward and sometimes even useful. Every data type comes with 
string coercion routines anyway right?

Regards,
Thomas Hallgren



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