pg uniq fix