Postgresql Find Duplicate Rows Based Texture