Postgresql String Comparison In C