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

From Christopher Kings-Lynne
Subject Re: How to cast VARCHAR to BYTEA and vice-versa?
Date
Msg-id 422E4D06.1010902@familyhealth.com.au
Whole thread Raw
In response to Re: How to cast VARCHAR to BYTEA and vice-versa?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>>How do I cast VARCHAR to BYTEA?
> 
> 
> I think it would work to create a cast WITHOUT FUNCTION, assuming that
> the semantics you want is that the exact bytes in the varchar datum
> become the bytes in the bytea (no encoding or backslashing conversions).

Are pg_escape_bytea and pg_unescape_bytea available from the backend as 
well as libpq?

Chris


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: How to cast VARCHAR to BYTEA and vice-versa?
Next
From: Bruce Momjian
Date:
Subject: Re: Where to see the patch queue (was Re: [PATCHES] Patch