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/