Postgresql treating the same values as different stack overflow.