Repository support for postgres.