| From: | Roman Neuhauser <neuhauser(at)sigpipe(dot)cz> |
|---|---|
| To: | Chris Hoover <revoohc(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Fwd: How to convert a string to bytea? |
| Date: | 2006-08-30 21:56:50 |
| Message-ID: | 20060830215650.GC70552@dagan.sigpipe.cz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-general |
# revoohc(at)gmail(dot)com / 2006-08-30 12:22:47 -0400:
> ---------- Forwarded message ----------
> From: Chris Hoover <revoohc(at)gmail(dot)com>
> Date: Aug 30, 2006 12:22 PM
> Subject: How to convert a string to bytea?
> To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
>
> I am in need of some help. I need to use the encode function against a text
> string in one of my pg/plsql functions. However, the encode function
> expects a bytea field to be passed to it. How do I convert my text string
> into a bytea?
See decode()/encode() in
http://www.postgresql.org/docs/8.1/static/functions-binarystring.html
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Julian Tree | 2006-08-30 22:06:05 | Postgresql 8.1.4 on FreeBSD6.1 core dump when pg_dump |
| Previous Message | Chris Browne | 2006-08-30 21:29:25 | Re: Database Optimization and Peformance |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wayne Conrad | 2006-08-30 22:18:17 | Re: Listening on more than one port? |
| Previous Message | Dennis Reaves | 2006-08-30 21:49:32 | Installing on Redhat 7.2 |