Commit 47cb9ca4 authored by Robert Haas's avatar Robert Haas

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
parent 3d956d95
...@@ -4064,8 +4064,7 @@ RemoveReindexPending(Oid indexOid) ...@@ -4064,8 +4064,7 @@ RemoveReindexPending(Oid indexOid)
static void static void
ResetReindexPending(void) ResetReindexPending(void)
{ {
if (IsInParallelMode()) /* This may be called in leader error path */
elog(ERROR, "cannot modify reindex state during a parallel operation");
pendingReindexedIndexes = NIL; pendingReindexedIndexes = NIL;
} }
......
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