Re: sha1, sha2 functions into core?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: sha1, sha2 functions into core?
Date: 2011-08-10 18:19:44
Message-ID: 15045.1313000384@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I would like to see whether there is support for adding sha1 and sha2
> functions into the core.

I can't get excited about that, but could put up with it as long as
there wasn't scope creep ...

> One thing that might be reasonable would be to move the digest()
> functions
> digest(data text, type text) returns bytea
> digest(data bytea, type text) returns bytea
> from pgcrypto into core,

... which this approach would create, because digest() isn't restricted
to just those algorithms. I think it'd be better to just invent two
new functions, which also avoids issues for applications that currently
expect the digest functions to be installed in pgcrypto's schema.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-08-10 18:21:38 Re: longstanding mingw warning
Previous Message Magnus Hagander 2011-08-10 18:16:47 Re: Enforcing that all WAL has been replayed after restoring from backup