Skip to content

Commit

Permalink
Update pg_auto_reindexer
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed May 30, 2022
1 parent 82dc0fd commit c2d5d53
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pg_auto_reindexer
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ for db in $DBNAME; do
# check for invalid temporary indexes with the suffix "index_"
invalid_index=$(psql -h ${PGHOST} -p ${PGPORT} -U ${DBUSER} -d "$db" -tAXc "SELECT string_agg(quote_ident(schemaname)||'.'||quote_ident(indexrelname), ', ') FROM pg_stat_user_indexes sui JOIN pg_index i USING (indexrelid) WHERE NOT indisvalid AND indexrelname like 'index_%'")
if [ -n "$invalid_index" ]; then
warnmsg "failed to repack index $index"
warnmsg "A temporary index apparently created by pg_repack has been left behind, and we do not want to risk dropping this index ourselves. If the index was in fact created by an old pg_repack job which didn't get cleaned up, you should just use DROP INDEX CONCURRENTLY and try the pg_auto_reindexer again."
warnmsg "invalid indexes: $invalid_index"

Expand Down

0 comments on commit c2d5d53

Please sign in to comment.