mirror of https://github.com/citusdata/citus.git
Allow read-only users to run task-tracker queries
parent
96eca92fc7
commit
14799ef2a0
|
@ -852,8 +852,6 @@ FetchRegularTable(const char *nodeName, uint32 nodePort, const char *tableName)
|
||||||
CommandCounterIncrement();
|
CommandCounterIncrement();
|
||||||
}
|
}
|
||||||
|
|
||||||
SetUserIdAndSecContext(savedUserId, savedSecurityContext);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy local file into the relation. We call ProcessUtility() instead of
|
* Copy local file into the relation. We call ProcessUtility() instead of
|
||||||
* directly calling DoCopy() because some extensions (e.g. cstore_fdw) hook
|
* directly calling DoCopy() because some extensions (e.g. cstore_fdw) hook
|
||||||
|
@ -872,6 +870,8 @@ FetchRegularTable(const char *nodeName, uint32 nodePort, const char *tableName)
|
||||||
/* finally delete the temporary file we created */
|
/* finally delete the temporary file we created */
|
||||||
DeleteFile(localFilePath->data);
|
DeleteFile(localFilePath->data);
|
||||||
|
|
||||||
|
SetUserIdAndSecContext(savedUserId, savedSecurityContext);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue