Try another trick for the postgres (reverted previous patch and just added sleep after the first start).