Having the DBMS on a different host should be a supported way of setup.
You should not depend on a postgres server on the same machine running
gitlab, and therefore neither should you pre-depend on postgres.
yep and why do SQL schema update during package upgrade? init script / solo script is better place imho.