Re: Any functions to convert bit(5) to text? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Any functions to convert bit(5) to text?
Date
Msg-id 20050210073157.GA59824@winnie.fuhr.org
Whole thread Raw
In response to Re: Any functions to convert bit(5) to text?  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Any functions to convert bit(5) to text?
Re: Any functions to convert bit(5) to text?
List pgsql-general
On Thu, Feb 10, 2005 at 12:16:53AM -0700, Michael Fuhr wrote:
>
> SELECT textin(bit_out(b)) FROM foo;

Is it generally true that you can convert between types using the
above method, assuming compatible syntax?  That is, using the source
type's output function to get a cstring that you pass to the target
type's input function?  Are there any potential problems with doing
this?  Is that how the PL/pgSQL RETURN trick works?  It seems a
handy way to cast one type to another when no built-in cast or
function exists.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Any functions to convert bit(5) to text?
Next
From: Együd Csaba
Date:
Subject: Re: Any functions to convert bit(5) to text?