README.rdoc

June 4, 2014 ยท View on GitHub

= Hamming distance function for PostgreSQL

Computes the hamming distance for 2 64bit unsigned integers.

== Requirements

  • PostgreSQL Server development libraries. (debian: postgresql-server-dev-9.3 e.g.)
  • pg_config in PATH.
  • GNU C compiler.
  • GNU make.

== Installing

PSQL_DB= make install

== Example

CREATE EXTENSION hamming_distance;
SELECT hamming_distance(4, 3); #=> 3

= License

{CC BY-SA 3.0}[http://creativecommons.org/licenses/by-sa/3.0/]