forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb4da9d0
committed
brin: Don't crash on auto-summarization
We were trying to free a pointer into a shared buffer, which neverworks; and we were failing to release the buffer lock appropriately.Fix those omissions.While at it, improve documentation for brinGetTupleForHeapBlock, theinadequacy of which evidently caused these bugs in the first place.Reported independently by Zhou Digoal (bug #14668) and Alexander Sosna.Discussion:https://postgr.es/m/8c31c11b-6adb-228d-22c2-4ace89fc9209@credativ.deDiscussion:https://postgr.es/m/20170524063323.29941.46339@wrigleys.postgresql.org1 parente6785a5 commitb4da9d0
2 files changed
+10
-6
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
| 194 | + | |
194 | 195 |
| |
195 | 196 |
| |
196 | 197 |
| |
|
Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
186 | 188 |
| |
187 | 189 |
| |
188 |
| - | |
| 190 | + | |
| 191 | + | |
189 | 192 |
| |
190 | 193 |
| |
191 | 194 |
| |
|
0 commit comments
Comments
(0)