mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
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
This commit is contained in:
parent
3d956d9562
commit
47cb9ca49a
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue