Refactor(postgres): Use everywhere the same initdb function.

2 jobs for !31 with hefee/same_initdb in 89 minutes and 49 seconds (queued for 185 minutes and 27 seconds)
detached
Status Job ID Name Coverage
  Build
failed #66424
build_clazy_clang_tidy

01:00:08

passed #66423
linux kf5-qt5 qt5.12

00:29:41

1.0%
 
Name Stage Failure
failed
build_clazy_clang_tidy Build The script exceeded the maximum execution time set for the job
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/attributes/entitydisplayattribute.cpp
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/attributes/indexpolicyattribute.cpp
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/attributes/specialcollectionattribute.cpp
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/attributes/tagattribute.cpp
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/jobs/collectionattributessynchronizationjob.cpp
clang-tidy -p=/builds/pim/akonadi/build -quiet /builds/pim/akonadi/src/core/attributes/persistentsearchattribute.cpp
Uploading artifacts for failed job
Pulling docker image gitlab/gitlab-runner-helper:x86_64-738bbe5a ...
ERROR: Job failed: execution took longer than 1h0m0s seconds