Added PostgreSQL 9 support.