converting to hex - Mailing list pgsql-general

From Jamie Deppeler
Subject converting to hex
Date
Msg-id 425480C3.2070506@doitonce.net.au
Whole thread Raw
List pgsql-general
Hi,

I am trying to write a function that will allow a postgres to convert a
text string into a hex value but there doesnt seem a function to do it,
only one i could find is to_hex(number) example of what i have done is

   update table1
   Set field2 = encode((select md5('field1')),'hex')
   where new."primary" = "primary";

any help would be greatfully received



pgsql-general by date:

Previous
From: Hervé Piedvache
Date:
Subject: Re: Big trouble with memory !!
Next
From: Chris Smith
Date:
Subject: using limit with delete