forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit73f950f
committed
Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats.
As noted by Noah Misch, my initial cut at fixing bug #11638 didn't coverall cases where ANALYZE might be invoked in an unsafe context. We need totest the result of IsInTransactionChain not IsTransactionBlock; which isnotationally a pain because IsInTransactionChain requires an isTopLevelflag, which would have to be passed down through several levels of callers.I chose to pass in_outer_xact (ie, the result of IsInTransactionChain)rather than isTopLevel per se, as that seemed marginally more aproposfor the intermediate functions to know about.1 parent9d06da5 commit73f950f
File tree
4 files changed
+36
-20
lines changed- src
- backend/commands
- include/commands
4 files changed
+36
-20
lines changedLines changed: 16 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
114 | 115 |
| |
115 | 116 |
| |
116 | 117 |
| |
117 |
| - | |
| 118 | + | |
| 119 | + | |
118 | 120 |
| |
119 | 121 |
| |
120 | 122 |
| |
| |||
214 | 216 |
| |
215 | 217 |
| |
216 | 218 |
| |
217 |
| - | |
| 219 | + | |
218 | 220 |
| |
219 | 221 |
| |
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
223 |
| - | |
| 225 | + | |
224 | 226 |
| |
225 | 227 |
| |
226 | 228 |
| |
| |||
243 | 245 |
| |
244 | 246 |
| |
245 | 247 |
| |
246 |
| - | |
| 248 | + | |
| 249 | + | |
247 | 250 |
| |
248 | 251 |
| |
249 | 252 |
| |
| |||
520 | 523 |
| |
521 | 524 |
| |
522 | 525 |
| |
523 |
| - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
524 | 530 |
| |
525 | 531 |
| |
526 | 532 |
| |
| |||
537 | 543 |
| |
538 | 544 |
| |
539 | 545 |
| |
540 |
| - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
541 | 550 |
| |
542 | 551 |
| |
543 | 552 |
| |
|
Lines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
207 | 209 |
| |
208 | 210 |
| |
209 | 211 |
| |
| |||
243 | 245 |
| |
244 | 246 |
| |
245 | 247 |
| |
246 |
| - | |
| 248 | + | |
247 | 249 |
| |
248 | 250 |
| |
249 | 251 |
| |
| |||
557 | 559 |
| |
558 | 560 |
| |
559 | 561 |
| |
560 |
| - | |
561 |
| - | |
| 562 | + | |
| 563 | + | |
562 | 564 |
| |
563 | 565 |
| |
564 |
| - | |
565 |
| - | |
566 |
| - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
567 | 569 |
| |
568 | 570 |
| |
569 | 571 |
| |
570 | 572 |
| |
571 | 573 |
| |
572 | 574 |
| |
573 |
| - | |
| 575 | + | |
| 576 | + | |
574 | 577 |
| |
575 | 578 |
| |
576 | 579 |
| |
| |||
601 | 604 |
| |
602 | 605 |
| |
603 | 606 |
| |
604 |
| - | |
| 607 | + | |
605 | 608 |
| |
606 |
| - | |
| 609 | + | |
607 | 610 |
| |
608 | 611 |
| |
609 | 612 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
269 |
| - | |
| 269 | + | |
| 270 | + | |
270 | 271 |
| |
271 | 272 |
| |
272 | 273 |
| |
| |||
1091 | 1092 |
| |
1092 | 1093 |
| |
1093 | 1094 |
| |
1094 |
| - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1095 | 1098 |
| |
1096 | 1099 |
| |
1097 | 1100 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
| 150 | + | |
150 | 151 |
| |
151 | 152 |
| |
152 | 153 |
| |
| |||
161 | 162 |
| |
162 | 163 |
| |
163 | 164 |
| |
164 |
| - | |
| 165 | + | |
165 | 166 |
| |
166 | 167 |
|
0 commit comments
Comments
(0)