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

Commit d610008

Browse files
committed
Bugfix. AQO must be disabled for queries inside a
parallel operation, as either the master or a worker.
1 parent 0148e20 commit d610008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preprocessing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ aqo_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
130130
strstr(application_name, "pgfdw:") != NULL || /* caused by fdw */
131131
get_extension_oid("aqo", true) == InvalidOid ||
132132
creating_extension ||
133-
IsParallelWorker() ||
133+
IsInParallelMode() || IsParallelWorker() ||
134134
(aqo_mode == AQO_MODE_DISABLED && !force_collect_stat) ||
135135
isQueryUsingSystemRelation(parse) ||
136136
RecoveryInProgress())

0 commit comments

Comments
 (0)