From: Robert Haas Date: Fri, 6 Apr 2018 23:28:48 +0000 (-0400) Subject: Fix possible failure in parallel index build. X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=47cb9ca49a611fa518e1a0fe46526507c96a5612;p=users%2Frhaas%2Fpostgres.git Fix possible failure in parallel index build. Report and proposed fix by David Rowley, put in patch form by Peter Geoghegan. Discussion: http://postgr.es/m/CAKJS1f91kq1wfYR8rnRRfKtxyhU2woEA+=whd640UxMyU+O0EQ@mail.gmail.com --- diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index bc99a60d34..b8e9f9f9c7 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -4064,8 +4064,7 @@ RemoveReindexPending(Oid indexOid) static void ResetReindexPending(void) { - if (IsInParallelMode()) - elog(ERROR, "cannot modify reindex state during a parallel operation"); + /* This may be called in leader error path */ pendingReindexedIndexes = NIL; }