Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 29861e2

Browse files
committed
Update outdated comment in ApplyRetrieveRule
After a61b1f7. Author: Amit Langote <amitlangote09@gmail.com> Discussion: https://postgr.es/m/CA+HiwqGZm7hb2VAy8HGM22-fTDaQzqE6T=5GbAk=GkT9H0hJEg@mail.gmail.com
1 parent 5bdd0cf commit 29861e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/rewrite/rewriteHandler.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,9 @@ ApplyRetrieveRule(Query *parsetree,
18841884
rte->inh = false; /* must not be set for a subquery */
18851885

18861886
/*
1887-
* We move the view's permission check data down to its rangetable. The
1888-
* checks will actually be done against the OLD entry therein.
1887+
* We move the view's permission check data down to its RTEPermissionInfo
1888+
* contained in the view query, which the OLD entry in its range table
1889+
* points to.
18891890
*/
18901891
subrte = rt_fetch(PRS2_OLD_VARNO, rule_action->rtable);
18911892
Assert(subrte->relid == relation->rd_id);

0 commit comments

Comments
 (0)