- gcc
- Postgres installed with server development package
git clone --recursive https://github.com/malwaredb/sdhash_psql.git
- Build SDHash:
cd sdhash
make
make
sudo make install
- Run
psql
as the admin user - Run:
CREATE OR REPLACE FUNCTION sdhash_compare(TEXT, TEXT) RETURNS INTEGER AS 'sdhash_psql.so', 'pg_sdhash_compare' LANGUAGE 'c';
.