Postgresql

This change set implements special cases necessary for the generic relational persistence mechanism to operate against PostgreSQL.