[Misc] Fix failing Postgres compilation
Description
This MR fixes the failing compilation when the Postgres scheduler is used by adding some missing #include statements.
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See our contributing docs
References
Closes #1326 (closed)
Edited by Niels Alexander Buegel