sha1, sha2 functions into core?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема sha1, sha2 functions into core?
Дата
Msg-id 1312999579.24721.52.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: sha1, sha2 functions into core?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: sha1, sha2 functions into core?  (Andrew Dunstan <andrew@dunslane.net>)
Re: sha1, sha2 functions into core?  (Dave Page <dpage@pgadmin.org>)
Список pgsql-hackers
I would like to see whether there is support for adding sha1 and sha2
functions into the core.  These are obviously well-known and widely used
functions, but currently the only way to get them is either through
pgcrypto or one of the PLs.  We could say that's OK, but then we do
support md5 in core, which then encourages people to use that, when they
really shouldn't use that for new applications.  Another weirdness is
that md5() doesn't return bytea but instead the result hex-encoded in a
string, which makes it weird to use in some cases.

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, so that pgcrypto is mostly restricted to
encryption, and can be kept at arm's length for those who need to do
that.

(Side note: Would the extension mechanism be able to easily cope with a
move like that?)




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Reduced power consumption in autovacuum launcher process
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SHOW command always returns text field