Re: ERROR: permission info at index 1 ....

2023-02-13 Thread Alvaro Herrera
limit 1) as c0, b as c1 > > from perm_test2 where false order by c0, c1) as subq where false; > > ERROR: permission info at index 1 (with relid=16457) does not match > > provided RTE (with relid=16460) > > Yeah, this was also reported by Justin Pryzby [1]. > >

Re: ERROR: permission info at index 1 ....

2023-02-13 Thread Tom Lane
by c0, c1) as subq where false; > ERROR: permission info at index 1 (with relid=16457) does not match > provided RTE (with relid=16460) Yeah, this was also reported by Justin Pryzby [1]. > Below codes can fix this: Right you are. Pushed, thanks! r

ERROR: permission info at index 1 ....

2023-02-13 Thread tender wang
: permission info at index 1 (with relid=16457) does not match provided RTE (with relid=16460) Below codes can fix this: --- a/src/backend/optimizer/plan/setrefs.c +++ b/src/backend/optimizer/plan/setrefs.c @@ -512,11 +512,16 @@ flatten_rtes_walker(Node *node, flatten_rtes_walker_context *cxt