Re: How to cast VARCHAR to BYTEA and vice-versa?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Moran(dot)Michael" <Michael(dot)Moran(at)IGT(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to cast VARCHAR to BYTEA and vice-versa?
Date: 2005-03-08 17:18:36
Message-ID: 8503.1110302316@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Moran.Michael" <Michael(dot)Moran(at)IGT(dot)com> writes:
> 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).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Moran.Michael 2005-03-08 22:16:52 Re: How to cast VARCHAR to BYTEA and vice-versa?
Previous Message Moran.Michael 2005-03-08 16:56:47 How to cast VARCHAR to BYTEA and vice-versa?