!55 Fix fdw bug.

Merge pull request !55 from TotaJ/bugfix/fdw_verbose
This commit is contained in:
opengauss-bot 2020-07-28 21:02:28 +08:00 committed by Gitee
commit 53626285eb
2 changed files with 4 additions and 1 deletions

View File

@ -5859,8 +5859,10 @@ ForeignScan* make_foreignscan(
plan->righttree = NULL;
plan->exec_type = type;
plan->distributed_keys = NIL;
#ifdef ENABLE_MULTIPLE_NODES
plan->distributed_keys =
lappend(plan->distributed_keys, makeVar(0, InvalidAttrNumber, InvalidOid, -1, InvalidOid, 0));
#endif
node->scan.scanrelid = scanrelid;
node->fdw_exprs = fdw_exprs;
node->fdw_private = fdw_private;

View File

@ -8504,7 +8504,8 @@ bool DropExtensionIsSupported(const char* query_string)
{
char* lower_string = lowerstr(query_string);
if (strstr(lower_string, "drop") && (strstr(lower_string, "postgis") || strstr(lower_string, "packages"))) {
if (strstr(lower_string, "drop") && (strstr(lower_string, "postgis") || strstr(lower_string, "packages") ||
strstr(lower_string, "mysql_fdw") || strstr(lower_string, "oracle_fdw"))) {
pfree_ext(lower_string);
return true;
} else {