forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfa86238
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 parentd26a810 commitfa86238
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2052 | 2052 |
| |
2053 | 2053 |
| |
2054 | 2054 |
| |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
2055 | 2063 |
| |
2056 | 2064 |
| |
2057 | 2065 |
| |
|
0 commit comments
Comments
(0)