changes for PostgreSQL 9.3 support