diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c new file mode 100644 index 2946a0e..15694e9 *** a/src/backend/executor/execMain.c --- b/src/backend/executor/execMain.c *************** ExecCheckXactReadOnly(PlannedStmt *plann *** 783,788 **** --- 783,791 ---- if ((rte->requiredPerms & (~ACL_SELECT)) == 0) continue; + if (rte->relkind == 'f') + continue; + if (isTempNamespace(get_rel_namespace(rte->relid))) continue;