Postgresql: Database schema not up to date after installation

As described in #4922 and #5177 the posgresql database schema is not up to date after installation. Apply this patch before installing. Then install on a postgresql database with "Install Sample Data" set to None. Login in the backend and go to the "Extension Manager" -> "Database" and verify that the database schema is uptodate.