From: | Sean Chittenden <sean(at)chittenden(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgcryto strangeness... |
Date: | 2002-01-05 21:52:40 |
Message-ID: | 20020105135240.Z36993@ninja1.internal |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-01-05 22:04:36 | Re: Some interesting results from tweaking spinlocks |
Previous Message | Bear Giles | 2002-01-05 21:49:52 | preannouncement: libpkixpq 0.3 will have crypto |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-01-07 02:02:47 | Re: pgcryto strangeness... |
Previous Message | Tom Lane | 2002-01-05 21:39:31 | Re: pgcryto strangeness... |