Improve test performances under postgresql

Merged Nicolas Évrard requested to merge topic/default/nicoe-faster_dbcache_restore into branch/default

This merge request contains two changes:

  • The first one allows to use database templates as the storing place for the test databases under postgresql
  • The second one uses the -j switch of pg_dump and pg_restore in order to speed up the restoring of the test cache databases.

Here's the result on the stock module tests (time in seconds):

Single Process Multi Process Template SQLite
Dump 177 158 124 71
Restore 166 136 103 57

Merge request reports