PostgreSQL upper function.