Skip to content

Commit

Permalink
Do reindexing concurrently
Browse files Browse the repository at this point in the history
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
  • Loading branch information
justinclift committed Oct 2, 2024
1 parent e29e9fa commit f354619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgautoupgrade-postupgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f354619

Please sign in to comment.