forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit353a1cc
committed
Release any detoasted copies of arrays that are made temporarily in
ri_FetchConstraintInfo, to avoid a query-duration memory leak when thatroutine is called by RI_FKey_keyequal_upd_fk (which isn't executed in ashort-lived context). This problem was latent when the routine was addedin February, but it didn't become serious until the varvarlena patch madeit quite likely that the fields being examined would be "toasted" (ie, haveshort headers). Per report from Stephen Denne.1 parent79a323a commit353a1cc
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
3099 | 3099 |
| |
3100 | 3100 |
| |
3101 | 3101 |
| |
| 3102 | + | |
| 3103 | + | |
3102 | 3104 |
| |
3103 | 3105 |
| |
3104 | 3106 |
| |
| |||
3113 | 3115 |
| |
3114 | 3116 |
| |
3115 | 3117 |
| |
| 3118 | + | |
| 3119 | + | |
3116 | 3120 |
| |
3117 | 3121 |
| |
3118 | 3122 |
| |
| |||
3127 | 3131 |
| |
3128 | 3132 |
| |
3129 | 3133 |
| |
| 3134 | + | |
| 3135 | + | |
3130 | 3136 |
| |
3131 | 3137 |
| |
3132 | 3138 |
| |
| |||
3141 | 3147 |
| |
3142 | 3148 |
| |
3143 | 3149 |
| |
| 3150 | + | |
| 3151 | + | |
3144 | 3152 |
| |
3145 | 3153 |
| |
3146 | 3154 |
| |
| |||
3155 | 3163 |
| |
3156 | 3164 |
| |
3157 | 3165 |
| |
| 3166 | + | |
| 3167 | + | |
3158 | 3168 |
| |
3159 | 3169 |
| |
3160 | 3170 |
| |
|
0 commit comments
Comments
(0)