- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitfdda78e
committed
Fix possible usage of incorrect UPPERREL_SETOP RelOptInfo
03d40e4 allowed dummy UNION [ALL] children to be removed from the planby checking for is_dummy_rel(). That commit neglected to still accountfor the relids from the dummy rel so that the correct UPPERREL_SETOPRelOptInfo could be found and used for adding the Paths to.Not doing this could result in processing of subsequent UNIONs using thesame RelOptInfo as a previously processed UNION, which could result inadd_path() freeing old Paths that are needed by the previous UNION.The same fix was independently submitted (2 mins later) by Richard Guo.Reported-by: Alexander Lakhin <exclusion@gmail.com>Author: David Rowley <dgrowleyml@gmail.com>Discussion:https://postgr.es/m/bee34aec-659c-46f1-9ab7-7bbae0b7616c@gmail.com1 parent0a3d27b commitfdda78e
File tree
2 files changed
+9
-5
lines changed- src
- backend/optimizer/prep
- test/regress/expected
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
776 | 782 | | |
777 | 783 | | |
778 | 784 | | |
| |||
815 | 821 | | |
816 | 822 | | |
817 | 823 | | |
818 | | - | |
819 | | - | |
820 | 824 | | |
821 | 825 | | |
822 | 826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | | - | |
1264 | | - | |
| 1263 | + | |
| 1264 | + | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
| 1270 | + | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
| |||
0 commit comments
Comments
(0)