From f35461902ddda6586b43dc1fa3253ccd23bcedb2 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Wed, 2 Oct 2024 15:01:30 +1000 Subject: [PATCH] Do reindexing concurrently Now that we're not doing the reindexing in single user mode, we'd better to it concurrently so as to avoid blocking (as much) for larger sized databases --- pgautoupgrade-postupgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgautoupgrade-postupgrade.sh b/pgautoupgrade-postupgrade.sh index 177171a..4e12d0e 100755 --- a/pgautoupgrade-postupgrade.sh +++ b/pgautoupgrade-postupgrade.sh @@ -32,7 +32,7 @@ for DATABASE in ${DB_LIST}; do echo "Starting reindex of ${DATABASE}" echo "-------------------------------" - echo 'REINDEX DATABASE' | psql -t --csv "${DATABASE}" + echo 'REINDEX DATABASE CONCURRENTLY' | psql -t --csv "${DATABASE}" echo "-------------------------------" echo "Finished reindex of ${DATABASE}"