Re: How to cast VARCHAR to BYTEA and vice-versa? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: How to cast VARCHAR to BYTEA and vice-versa?
Date
Msg-id 20050309003323.GA12798@dcc.uchile.cl
Whole thread Raw
In response to Re: How to cast VARCHAR to BYTEA and vice-versa?  ("Moran.Michael" <Michael.Moran@IGT.com>)
List pgsql-hackers
On Tue, Mar 08, 2005 at 02:16:52PM -0800, Moran.Michael wrote:

> Yes, the exact bytes in the varchar datum (without encoding) is what I would
> like to become the bytes in the BYTEA.
>  
> So, how do I create a "cast WITHOUT FUNCTION" as you mention below? I assume
> plpgsql is required, right?

Did you check the reference page for CREATE CAST already?

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Por suerte hoy explotó el califont porque si no me habría muertode aburrido"  (Papelucho)


pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: fool-toleranced optimizer
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: How to cast VARCHAR to BYTEA and vice-versa?