forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite65b550
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 parent81f0a5e commite65b550
File tree
4 files changed
+31
-20
lines changed- src
- backend/commands
- include/commands
4 files changed
+31
-20
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
| 118 | + | |
118 | 119 |
| |
119 | 120 |
| |
120 | 121 |
| |
| |||
264 | 265 |
| |
265 | 266 |
| |
266 | 267 |
| |
267 |
| - | |
| 268 | + | |
| 269 | + | |
268 | 270 |
| |
269 | 271 |
| |
270 | 272 |
| |
271 | 273 |
| |
272 | 274 |
| |
273 |
| - | |
| 275 | + | |
| 276 | + | |
274 | 277 |
| |
275 | 278 |
| |
276 | 279 |
| |
| |||
300 | 303 |
| |
301 | 304 |
| |
302 | 305 |
| |
303 |
| - | |
| 306 | + | |
304 | 307 |
| |
305 | 308 |
| |
306 | 309 |
| |
| |||
583 | 586 |
| |
584 | 587 |
| |
585 | 588 |
| |
586 |
| - | |
| 589 | + | |
| 590 | + | |
587 | 591 |
| |
588 | 592 |
| |
589 | 593 |
| |
| |||
604 | 608 |
| |
605 | 609 |
| |
606 | 610 |
| |
607 |
| - | |
| 611 | + | |
| 612 | + | |
608 | 613 |
| |
609 | 614 |
| |
610 | 615 |
| |
|
Lines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
| 209 | + | |
| 210 | + | |
209 | 211 |
| |
210 | 212 |
| |
211 | 213 |
| |
| |||
251 | 253 |
| |
252 | 254 |
| |
253 | 255 |
| |
254 |
| - | |
| 256 | + | |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
| |||
665 | 667 |
| |
666 | 668 |
| |
667 | 669 |
| |
668 |
| - | |
669 |
| - | |
| 670 | + | |
| 671 | + | |
670 | 672 |
| |
671 | 673 |
| |
672 |
| - | |
673 |
| - | |
674 |
| - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
675 | 677 |
| |
676 | 678 |
| |
677 | 679 |
| |
| |||
680 | 682 |
| |
681 | 683 |
| |
682 | 684 |
| |
683 |
| - | |
| 685 | + | |
| 686 | + | |
684 | 687 |
| |
685 | 688 |
| |
686 | 689 |
| |
| |||
716 | 719 |
| |
717 | 720 |
| |
718 | 721 |
| |
719 |
| - | |
| 722 | + | |
720 | 723 |
| |
721 |
| - | |
| 724 | + | |
722 | 725 |
| |
723 | 726 |
| |
724 | 727 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
306 | 306 |
| |
307 | 307 |
| |
308 | 308 |
| |
309 |
| - | |
| 309 | + | |
| 310 | + | |
310 | 311 |
| |
311 | 312 |
| |
312 | 313 |
| |
| |||
1370 | 1371 |
| |
1371 | 1372 |
| |
1372 | 1373 |
| |
1373 |
| - | |
| 1374 | + | |
| 1375 | + | |
1374 | 1376 |
| |
1375 | 1377 |
| |
1376 | 1378 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
| 160 | + | |
160 | 161 |
| |
161 | 162 |
| |
162 | 163 |
| |
| |||
175 | 176 |
| |
176 | 177 |
| |
177 | 178 |
| |
178 |
| - | |
| 179 | + | |
179 | 180 |
| |
180 | 181 |
| |
181 | 182 |
| |
|
0 commit comments
Comments
(0)