修复copy to、copy from提示错误问题
This commit is contained in:
7
src/common/backend/utils/cache/evtcache.cpp
vendored
7
src/common/backend/utils/cache/evtcache.cpp
vendored
@ -232,7 +232,10 @@ static int DecodeTextArrayToCString(Datum array, char ***cstringp)
|
||||
*/
|
||||
static void InvalidateEventCacheCallback(Datum arg, int cacheid, uint32 hashvalue)
|
||||
{
|
||||
MemoryContextReset(u_sess->exec_cxt.EventTriggerCacheContext);
|
||||
u_sess->exec_cxt.EventTriggerCache = NULL;
|
||||
/*Avoid repeated cache release,especially while rebuilding evtcache*/
|
||||
if (u_sess->exec_cxt.EventTriggerCache != NULL) {
|
||||
MemoryContextReset(u_sess->exec_cxt.EventTriggerCacheContext);
|
||||
u_sess->exec_cxt.EventTriggerCache = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -3201,7 +3201,7 @@ void standard_ProcessUtility(processutility_context* processutility_cxt,
|
||||
uint64 processed;
|
||||
uint64 histhash;
|
||||
bool has_histhash;
|
||||
processed = DoCopy((CopyStmt*)parse_tree, query_string, &processed);
|
||||
DoCopy((CopyStmt*)parse_tree, query_string, &processed);
|
||||
has_histhash = ((CopyStmt*)parse_tree)->hashstate.has_histhash;
|
||||
histhash = ((CopyStmt*)parse_tree)->hashstate.histhash;
|
||||
if (completion_tag != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user