Typescript Select Distinct Postgresql Vs Postgresql Jdbc