Commit d1b00076 authored by Alvaro Herrera's avatar Alvaro Herrera

Fix progress report of REINDEX INDEX

I (Álvaro) broke that in commit 6212276e -- forgot to set the
necessary flag.  Repair.

Author: Amit Langote
Discussion: https://postgr.es/m/CA+HiwqEaM2tV5awKhP1vSbgjQe_uXVU15Oi4sTgwgempwMiT8g@mail.gmail.com
parent 5033e958
...@@ -2350,7 +2350,8 @@ ReindexIndex(RangeVar *indexRelation, int options, bool concurrent) ...@@ -2350,7 +2350,8 @@ ReindexIndex(RangeVar *indexRelation, int options, bool concurrent)
if (concurrent) if (concurrent)
ReindexRelationConcurrently(indOid, options); ReindexRelationConcurrently(indOid, options);
else else
reindex_index(indOid, false, persistence, options); reindex_index(indOid, false, persistence,
options | REINDEXOPT_REPORT_PROGRESS);
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment