This commit is contained in:
Xiao__Ma 2021-04-16 21:23:46 +08:00 committed by zhaowenhao
parent 7674a2a9eb
commit 43fd81e96a
3 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ int main(int argc, char** argv)
errorMessages = ConnectDatabase(fout, dbname, pghost, pgport, username, prompt_password, false);
if (errorMessages != NULL) {
(void)remove(filename);
filename = NULL;
GS_FREE(filename);
exit_horribly(NULL, "connection to database \"%s\" failed: %s ",
((dbname != NULL) ? dbname : ""), errorMessages);
}

View File

@ -174,6 +174,7 @@ PlannedStmt* pgxc_planner(Query* query, int cursorOptions, ParamListInfo boundPa
result->ng_use_planA = use_planA;
ReSetNgQueryMem(result);
}
/* release resource applied in standard_planner */
t_thrd.utils_cxt.CurrentResourceOwner = currentOwner;
ResourceOwnerDelete(tempOwner);
}

View File

@ -1940,7 +1940,6 @@ bool DeleteFusion::execute(long max_rows, char* completionTag)
********************************/
HeapTuple oldtup = NULL;
unsigned long nprocessed = 0;
m_tupDesc = RelationGetDescr(rel);
while ((oldtup = m_scan->getTuple()) != NULL) {
TM_Result result;