Skip to content

Commit

Permalink
Do not re-do permission checks on range table for parallel worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipesh Dhameliya committed Oct 9, 2023
1 parent 7dfb4a1 commit d210797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/executor/execMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,10 @@ InitPlan(QueryDesc *queryDesc, int eflags)
int i;

/*
* Do permissions checks
* Do permissions checks if not parallel worker
*/
ExecCheckRTPerms(rangeTable, true);
if (!IsParallelWorker())
ExecCheckRTPerms(rangeTable, true);

/*
* initialize the node's execution state
Expand Down

0 comments on commit d210797

Please sign in to comment.