Convert of string to array problem - Mailing list pgsql-general

From Bård Grønbech
Subject Convert of string to array problem
Date
Msg-id w2gc74accdd1004290535yae6032depa737ba1ae3c463bd@mail.gmail.com
Whole thread Raw
Responses Re: Convert of string to array problem  (Thom Brown <thombrown@gmail.com>)
List pgsql-general
Have a string like '0.1;0.2;null;0.3' which I would like to convert
into a double precision[] array.

Trying:

select cast (string_to_array('0.1;0.2;null;0.3', ';') as float8[])

gives me an error: invalid input syntax for type double precision: "null".

Can anybody help me?

-Bård

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: FW: Java Memory Issue while Loading Postgres library
Next
From: Merlin Moncure
Date:
Subject: Re: Problem: concat an array of arrays