postgres is strict about datatypes