- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit01575ad
committed
Prevent duplicate RTEPermissionInfo for plain-inheritance parents
Currently, expand_single_inheritance_child() doesn't resetperminfoindex in a plain-inheritance parent's child RTE, becauseprior to387f9ed, the executor would use the first child RTE tolocate the parent's RTEPermissionInfo. That in turn causesadd_rte_to_flat_rtable() to create an extra RTEPermissionInfobelonging to the parent's child RTE with the same content as the onebelonging to the parent's original ("root") RTE.In387f9ed, we changed things so that the executor can now use theparent's "root" RTE for locating its RTEPermissionInfo instead of thechild RTE, so the latter's perminfoindex need not be set anymore, somake it so.Reported-by: Tom LaneDiscussion:https://postgr.es/m/839708.1698174464@sss.pgh.pa.usBackpatch-through: 161 parent29d0a77 commit01575ad
1 file changed
+2
-7
lines changedLines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
503 |
| - | |
| 497 | + | |
| 498 | + | |
504 | 499 |
| |
505 | 500 |
| |
506 | 501 |
| |
|
0 commit comments
Comments
(0)