Improve test performances under postgresql
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
-jswitch ofpg_dumpandpg_restorein 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 |