This reduces potential for locking when run in a production
database, particularly if done outside of a full version upgrade.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
-BEGIN;
-
+-- No transaction needed. This can be run on a live, production server.
SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-CREATE INDEX atev_template_output ON action_trigger.event (template_output);
-CREATE INDEX atev_async_output ON action_trigger.event (async_output);
-CREATE INDEX atev_error_output ON action_trigger.event (error_output);
-
-COMMIT;
+CREATE INDEX CONCURRENTLY atev_template_output ON action_trigger.event (template_output);
+CREATE INDEX CONCURRENTLY atev_async_output ON action_trigger.event (async_output);
+CREATE INDEX CONCURRENTLY atev_error_output ON action_trigger.event (error_output);