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

Commit 776260d

Browse files
committed
Prevent distributed deadlocks. Disable AQO for FDW queries.
Tags: shardman.
1 parent 239dac9 commit 776260d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

preprocessing.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ aqo_planner(Query *parse,
126126
*/
127127
if ((parse->commandType != CMD_SELECT && parse->commandType != CMD_INSERT &&
128128
parse->commandType != CMD_UPDATE && parse->commandType != CMD_DELETE) ||
129+
strstr(application_name, "postgres_fdw") != NULL || /* Prevent distributed deadlocks */
130+
strstr(application_name, "pgfdw:") != NULL || /* caused by fdw */
129131
get_extension_oid("aqo", true) == InvalidOid ||
130132
creating_extension ||
131133
IsParallelWorker() ||

0 commit comments

Comments
 (0)