- Notifications
You must be signed in to change notification settings - Fork5
Commitd5aa7a9
committed
Avoid unnecessary snapshot-acquisitions in BuildCachedPlan.
I had copied-and-pasted a claim that we couldn't reach this point whendealing with utility statements, but that was a leftover from when thecaller was required to supply a plan to start with. We now will gothrough here at least once when handling a utility statement, so itseems worth a check to see whether a snapshot is actually needed.(Note that analyze_requires_snapshot is quite a cheap test.)Per suggestion from Yamamoto Takashi. I don't think I believe that thisresolves his reported assertion failure; but it's worth changing anyway,just to save a cycle or two.1 parent2594ad7 commitd5aa7a9
1 file changed
+5
-6
lines changedLines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| |||
756 | 757 |
| |
757 | 758 |
| |
758 | 759 |
| |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
763 |
| - | |
| 760 | + | |
| 761 | + | |
764 | 762 |
| |
765 | 763 |
| |
766 |
| - | |
| 764 | + | |
| 765 | + | |
767 | 766 |
| |
768 | 767 |
| |
769 | 768 |
| |
|
0 commit comments
Comments
(0)