The original question are based on my previous question here
But as i have found there is an K-Means algorithm application for PostgreSQL, i decided to rather weighing t