- Notifications
You must be signed in to change notification settings - Fork5
Commit281a724
committed
Rewrite DROP's dependency traversal algorithm into an honest two-pass
algorithm, replacing the original intention of a one-pass search, whichhad been hacked up over time to be partially two-pass in hopes of handlingvarious corner cases better. It still wasn't quite there, especially asregards emitting unwanted NOTICE messages. More importantly, this approachlets us fix a number of open bugs concerning concurrent DROP scenarios,because we can take locks during the first pass and avoid traversing todependent objects that were just deleted by someone else.There is more that can be done here, but I'll go ahead and commit thebase patch before working on the options.1 parentcc87402 commit281a724
File tree
15 files changed
+747
-656
lines changed- src
- backend
- access/index
- catalog
- include
- access
- catalog
- test/regress
- expected
- output
15 files changed
+747
-656
lines changedLines changed: 42 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
254 | 295 |
| |
255 | 296 |
| |
256 | 297 |
| |
|
0 commit comments
Comments
(0)