- Notifications
You must be signed in to change notification settings - Fork5
Commit96d66bc
committed
Improve performance of OverrideSearchPathMatchesCurrent().
This function was initially coded on the assumption that it would not beperformance-critical, but that turns out to be wrong in workloads thatare heavily dependent on the speed of plpgsql functions. Speed it up byhard-coding the comparison rules, thereby avoiding palloc/pfree trafficfrom creating and immediately freeing an OverrideSearchPath object.Per report from Scott Marlowe.1 parente384ed6 commit96d66bc
1 file changed
+37
-13
lines changedLines changed: 37 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3145 | 3145 |
| |
3146 | 3146 |
| |
3147 | 3147 |
| |
3148 |
| - | |
3149 |
| - | |
3150 |
| - | |
| 3148 | + | |
| 3149 | + | |
3151 | 3150 |
| |
3152 |
| - | |
3153 |
| - | |
3154 |
| - | |
3155 |
| - | |
3156 |
| - | |
3157 |
| - | |
3158 |
| - | |
3159 |
| - | |
3160 |
| - | |
3161 |
| - | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
3162 | 3186 |
| |
3163 | 3187 |
| |
3164 | 3188 |
| |
|
0 commit comments
Comments
(0)