Fix compilation of PostgreSQL backend.