Adapt for changes in PostgreSQL 9.3.x