| От | Mike Charnoky |
|---|---|
| Тема | Re: convert custom datatype to array |
| Дата | |
| Msg-id | 4741B728.5090004@nextbus.com обсуждение исходный текст |
| Ответ на | Re: convert custom datatype to array (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Список | pgsql-general |
Thanks! That did the trick. For posterity, I was able to do the final conversion using: alter table mytable alter column mycolumn type float4[] using string_to_array(trim(both '[]' from textin(nbf4a_out(mycolumn))),',')::float4[]; Mike Alvaro Herrera wrote: > Mike Charnoky wrote: >> OK, forgive my ignorance here, but the maintainer of our custom data >> type code is no longer with us and this is new territory for me. We do >> have a function which takes our custom data type and returns a cstring. >> Is there a pg function which converts a cstring to text type? This >> seems to be the missing link to eventually get the data to float4[]. > > Sure, textin() does that. >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера