PG should include support for SHA1 anyway. MD5 is not being used in new stuff anymore, I think. I actually have an SHA1 implementation that links into PG if anyone is interested (especially if it could get included in a future release). e
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных