Content-Length: 260183 | pFad | http://github.com/postgrespro/postgres/commit/47cb9ca49a611fa518e1a0fe46526507c96a5612

C9 Fix possible failure in parallel index build. · postgrespro/postgres@47cb9ca · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/47cb9ca49a611fa518e1a0fe46526507c96a5612

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy