change order of build for pgsql