ERROR: invalid input syntax for type timestamp: "" LINE 3: AND data_aprovacao >= '' ^