Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 440 Bytes

README.rdoc

File metadata and controls

22 lines (13 loc) · 440 Bytes

Hamming distance function for PostgreSQL

Computes the hamming distance for 2 64bit unsigned integers.

Requirements

  • PostgreSQL Server development libraries. (debian: postgresql-server-dev-9.0 e.g.)

  • pg_config in PATH.

  • GNU C compiler.

  • GNU make.

Installing

PSQL_DB=<database name> make install

Example

select hamming_distance(4, 3); #=> 3

License

CC BY-SA 3.0