Re: Convert bytea to Float8

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Lee Keel" <lee(dot)keel(at)uai(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Convert bytea to Float8
Date: 2007-10-15 20:54:17
Message-ID: dcc563d10710151354k32801cf8h627fffcf12556661@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/15/07, Lee Keel <lee(dot)keel(at)uai(dot)com> wrote:
>
>
>
>
> I am sorry to push this issue, but I have clients waiting on a solution for
> this. So, does the lack of response mean that I am going to have to find
> another approach? Or can this conversion be done in ppgsql\perl?

Does something like:

select encode('12346758'::bytea,'escape')::float

work?

Since I'm not sure what format your data is stored in I'm just guessing here.

Note that you could use get_byte and cycle through the offset to get
each byte as well.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2007-10-15 20:57:58 Re: Convert bytea to Float8
Previous Message Merlin Moncure 2007-10-15 20:26:22 Re: Convert bytea to Float8