Du kan prova PostgreSQL 9.1. Det kan stödja Nearest Neighbor Search Index http://excoventures.com/talks/knn.pdf