Re: pgcryto strangeness... - Mailing list pgsql-hackers

From Sean Chittenden
Subject Re: pgcryto strangeness...
Date
Msg-id 20020105135240.Z36993@ninja1.internal
Whole thread Raw
In response to Re: pgcryto strangeness...  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgcryto strangeness...  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
> So, create yourself another function.  In pgcrypto.sql.in I see
> 
> CREATE FUNCTION digest(bytea, text) RETURNS bytea
>   AS 'MODULE_PATHNAME',
>   'pg_digest' LANGUAGE 'C';
> 
> You could add
> 
> CREATE FUNCTION digest(text, text) RETURNS bytea
>   AS 'MODULE_PATHNAME',
>   'pg_digest' LANGUAGE 'C';
> 
> which should work fine since the internal representation of text isn't
> really different from that of bytea.

Tom, you're a regular postgres god.  ;~) That works beautifully!  I'm
cooking along now, thanks 'all!

Real quick, is anyone else is interested, I'm turning pgcrypto into a
port for FreeBSD. I'm mostly done, so if anyone has any interest in
testing this (very strange port to make because you have to copy the
backend headers out of the postgres tarball and into the include path.
I know this is changing with 7.2, but it's not out yet.  ::grin::),
please let me know.  -sc

-- 
Sean Chittenden


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgcryto strangeness...
Next
From: Tom Lane
Date:
Subject: Re: LWLock contention: I think I understand the problem