SQL : Input of anonymous composite types is not implemented - Postgres