Getting things ready for PostgreSQL switch