forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaffee8b
committed
Speed up match_eclasses_to_foreign_key_col() when there are many ECs.
Check ec_relids before bothering to iterate through the EC members.On a perhaps extreme, but still real-world, query in whichmatch_eclasses_to_foreign_key_col() accounts for the bulk of theplanner's runtime, this saves nearly 40% of the runtime. It's a bitof a stopgap fix, but it's simple enough to be back-patched to 9.6where this code came in; so let's do that.David RowleyDiscussion:https://postgr.es/m/6970.1545327857@sss.pgh.pa.us1 parentddad002 commitaffee8b
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2013 | 2013 |
| |
2014 | 2014 |
| |
2015 | 2015 |
| |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2016 | 2024 |
| |
2017 | 2025 |
| |
2018 | 2026 |
| |
|
0 commit comments
Comments
(0)