From 0fc639d422ff69603d618cf421365367050b2d0a Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 25 Jan 2019 13:54:44 +0300 Subject: [PATCH] let analyze runs with NOWAIT option, it prevents self-deadlock in corner cases --- online_analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/online_analyze.c b/online_analyze.c index 77c1f8b..90f261c 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -556,7 +556,7 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected) #endif #else makeRangeVarFromOid(relOid), - VACOPT_ANALYZE | ((online_analyze_verbose) ? VACOPT_VERBOSE : 0), + VACOPT_ANALYZE | VACOPT_NOWAIT | ((online_analyze_verbose) ? VACOPT_VERBOSE : 0), &vacstmt, NULL, true, GetAccessStrategy(BAS_VACUUM) #endif ); -- 2.37.3