postgres.git / summary / log / commit / refs

commit    29861e228a47c3b6c292f1bd4da413662a246ca2
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Wed Dec 07 11:35:59 2022 +0000
First released in: 16.0

    Update outdated comment in ApplyRetrieveRule
    
    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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/rewrite/rewriteHandler.c b/src/backend/rewrite/rewriteHandler.c index ea56ff79c86..7cf0ceacc38 100644 --- a/src/backend/rewrite/rewriteHandler.c +++ b/src/backend/rewrite/rewriteHandler.c @@ -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); [parent: 5bdd0cfb9103]