diff options
author | Robert Haas <rhaas@postgresql.org> | 2018-04-06 19:28:48 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2018-04-06 19:28:48 -0400 |
commit | 47cb9ca49a611fa518e1a0fe46526507c96a5612 (patch) | |
tree | 6799e675cdc3cb2dbddb5f7a0c7a8d1a8548c501 | |
parent | 3d956d9562aa4811b5eaaaf5314d361c61be2ae0 (diff) | |
download | postgresql-47cb9ca49a611fa518e1a0fe46526507c96a5612.tar.gz postgresql-47cb9ca49a611fa518e1a0fe46526507c96a5612.zip |
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
-rw-r--r-- | src/backend/catalog/index.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index bc99a60d347..b8e9f9f9c7a 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; } |