Postgresql Invalid Input Syntax For Type Interface