This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new b11fce37a26 Remove extra permission check on initplan
b11fce37a26 is described below

commit b11fce37a26acdc64644581c43588c21cf4f9712
Author: Jinbao Chen <[email protected]>
AuthorDate: Mon Oct 20 22:39:00 2025 +0800

    Remove extra permission check on initplan
---
 src/backend/executor/execMain.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index b4336b25298..563274e85ad 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -1818,14 +1818,6 @@ InitPlan(QueryDesc *queryDesc, int eflags)
                }
        }
 
-       /*
-        * Do permissions checks
-        */
-       if (operation != CMD_SELECT || Gp_role != GP_ROLE_EXECUTE)
-       {
-               ExecCheckPermissions(rangeTable, plannedstmt->permInfos, true);
-       }
-
        /*
         * initialize the node's execution state
         */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to