]> granicus.if.org Git - postgresql/commitdiff
Fix progress report of REINDEX INDEX
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 20 Sep 2019 15:53:58 +0000 (12:53 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 20 Sep 2019 15:55:35 +0000 (12:55 -0300)
I (Álvaro) broke that in commit 6212276e4343 -- forgot to set the
necessary flag.  Repair.

Author: Amit Langote
Discussion: https://postgr.es/m/CA+HiwqEaM2tV5awKhP1vSbgjQe_uXVU15Oi4sTgwgempwMiT8g@mail.gmail.com

src/backend/commands/indexcmds.c

index d3824cd45a225ab49a006c14308b007906751331..a528241131061081f57a2e0ab1c9bd5927e35423 100644 (file)
@@ -2351,7 +2351,8 @@ ReindexIndex(RangeVar *indexRelation, int options, bool concurrent)
        if (concurrent)
                ReindexRelationConcurrently(indOid, options);
        else
-               reindex_index(indOid, false, persistence, options);
+               reindex_index(indOid, false, persistence,
+                                         options | REINDEXOPT_REPORT_PROGRESS);
 }
 
 /*