Re: convert custom datatype to array

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Mike Charnoky <noky(at)nextbus(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: convert custom datatype to array
Date: 2007-11-19 15:50:56
Message-ID: 20071119155056.GE18602@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Coge la flor que hoy nace alegre, ufana. ¿Quién sabe si nacera otra mañana?"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dragan Matic 2007-11-19 15:52:10 Timestamp comparison with string in some special cases
Previous Message Mike Charnoky 2007-11-19 15:45:30 Re: convert custom datatype to array