forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit708f82f
committed
Fix bug noted by Bruce: FETCH in an already-aborted transaction block
would crash, due to premature invocation of SetQuerySnapshot(). Cleanup problems with handling of multiple queries by splittingpg_parse_and_plan into two routines. The old code would not, forexample, do the right thing with END; SELECT... submitted in one querystring when it had been in transaction abort state, because it'd decideto skip planning the SELECT before it had executed the END. Newarrangement is simpler and doesn't force caller to plan if onlyparse+rewrite is needed.1 parent30d4f58 commit708f82f
File tree
6 files changed
+123
-169
lines changed- src
- backend
- catalog
- executor
- tcop
- include/tcop
6 files changed
+123
-169
lines changedLines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
65 | 64 |
| |
66 | 65 |
| |
67 | 66 |
| |
| |||
222 | 221 |
| |
223 | 222 |
| |
224 | 223 |
| |
225 |
| - | |
226 |
| - | |
227 |
| - | |
| 224 | + | |
| 225 | + | |
228 | 226 |
| |
229 | 227 |
| |
230 | 228 |
| |
|
Lines changed: 7 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
88 | 87 |
| |
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
94 | 93 |
| |
95 |
| - | |
96 |
| - | |
| 94 | + | |
| 95 | + | |
97 | 96 |
| |
98 | 97 |
| |
99 | 98 |
| |
100 | 99 |
| |
101 |
| - | |
| 100 | + | |
102 | 101 |
| |
103 | 102 |
| |
| 103 | + | |
| 104 | + | |
104 | 105 |
| |
105 | 106 |
| |
106 | 107 |
| |
| |||
141 | 142 |
| |
142 | 143 |
| |
143 | 144 |
| |
144 |
| - | |
145 |
| - | |
146 | 145 |
| |
147 | 146 |
| |
148 | 147 |
| |
| |||
151 | 150 |
| |
152 | 151 |
| |
153 | 152 |
| |
154 |
| - | |
155 |
| - | |
156 | 153 |
| |
157 | 154 |
| |
158 | 155 |
| |
159 | 156 |
| |
160 | 157 |
| |
161 | 158 |
| |
162 |
| - | |
163 | 159 |
| |
164 | 160 |
| |
165 | 161 |
| |
| |||
168 | 164 |
| |
169 | 165 |
| |
170 | 166 |
| |
171 |
| - | |
172 | 167 |
| |
173 | 168 |
| |
174 |
| - | |
175 | 169 |
| |
176 |
| - | |
| 170 | + | |
177 | 171 |
| |
178 | 172 |
| |
179 | 173 |
| |
180 | 174 |
| |
181 | 175 |
| |
182 | 176 |
| |
183 | 177 |
| |
184 |
| - | |
185 | 178 |
| |
186 | 179 |
| |
187 | 180 |
| |
| |||
191 | 184 |
| |
192 | 185 |
| |
193 | 186 |
| |
194 |
| - | |
195 |
| - | |
196 | 187 |
| |
197 | 188 |
| |
198 | 189 |
| |
199 | 190 |
| |
200 | 191 |
| |
201 | 192 |
| |
202 |
| - | |
203 | 193 |
| |
204 | 194 |
| |
205 | 195 |
| |
|
Lines changed: 10 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
622 | 622 |
| |
623 | 623 |
| |
624 | 624 |
| |
625 |
| - | |
626 | 625 |
| |
627 | 626 |
| |
628 | 627 |
| |
| |||
645 | 644 |
| |
646 | 645 |
| |
647 | 646 |
| |
648 |
| - | |
649 |
| - | |
| 647 | + | |
| 648 | + | |
650 | 649 |
| |
651 | 650 |
| |
652 | 651 |
| |
| 652 | + | |
| 653 | + | |
653 | 654 |
| |
654 | 655 |
| |
655 | 656 |
| |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
660 | 661 |
| |
661 | 662 |
| |
662 | 663 |
| |
| |||
707 | 708 |
| |
708 | 709 |
| |
709 | 710 |
| |
710 |
| - | |
| 711 | + | |
711 | 712 |
| |
712 | 713 |
| |
713 | 714 |
| |
|
0 commit comments
Comments
(0)