Update outdated comment in ApplyRetrieveRule
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 7 Dec 2022 11:35:59 +0000 (12:35 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 7 Dec 2022 11:35:59 +0000 (12:35 +0100)
After a61b1f74823c.

Author: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/CA+HiwqGZm7hb2VAy8HGM22-fTDaQzqE6T=5GbAk=GkT9H0hJEg@mail.gmail.com

src/backend/rewrite/rewriteHandler.c

index ea56ff79c861bc6a5815a9fca529661480c23145..7cf0ceacc387b056d861ba3049ce4af5135bf249 100644 (file)
@@ -1884,8 +1884,9 @@ ApplyRetrieveRule(Query *parsetree,
    rte->inh = false;           /* must not be set for a subquery */
 
    /*
-    * We move the view's permission check data down to its rangetable. The
-    * checks will actually be done against the OLD entry therein.
+    * We move the view's permission check data down to its RTEPermissionInfo
+    * contained in the view query, which the OLD entry in its range table
+    * points to.
     */
    subrte = rt_fetch(PRS2_OLD_VARNO, rule_action->rtable);
    Assert(subrte->relid == relation->rd_id);