Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 47cb9ca

Browse files
committed
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
1 parent 3d956d9 commit 47cb9ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/catalog/index.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4064,8 +4064,7 @@ RemoveReindexPending(Oid indexOid)
40644064
static void
40654065
ResetReindexPending(void)
40664066
{
4067-
if (IsInParallelMode())
4068-
elog(ERROR, "cannot modify reindex state during a parallel operation");
4067+
/* This may be called in leader error path */
40694068
pendingReindexedIndexes = NIL;
40704069
}
40714070

0 commit comments

Comments
 (0)