Allow read-only users to run task-tracker queries

release-7.0
Marco Slot 2017-09-28 13:45:18 +02:00
parent 4873d771e8
commit ea52bee891
1 changed files with 2 additions and 2 deletions

View File

@ -861,8 +861,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
@ -881,6 +879,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;
} }