- Notifications
You must be signed in to change notification settings - Fork28
Commitc12693d
committed
Introduce ExecQualAndReset() helper.
It's a common task to evaluate a qual and reset the correspondingexpression context. Currently that requires storing the result of thequal eval, resetting the context, and then reacting on the result. Asthat's awkward several places only reset the context next time througha node. That's not great, so introduce a helper that evaluates andresets.It's a bit ugly that it currently uses MemoryContextReset() instead ofResetExprContext(), but that seems easier than reordering all ofexecutor.h.Author: Andres FreundDiscussion:https://postgr.es/m/20180109222544.f7loxrunqh3xjl5f@alap3.anarazel.de1 parent97d4445 commitc12693d
File tree
5 files changed
+25
-25
lines changed- src
- backend/executor
- include/executor
5 files changed
+25
-25
lines changedLines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 |
| - | |
356 |
| - | |
357 |
| - | |
| 355 | + | |
358 | 356 |
| |
359 | 357 |
| |
360 | 358 |
| |
| |||
717 | 715 |
| |
718 | 716 |
| |
719 | 717 |
| |
720 |
| - | |
721 |
| - | |
722 |
| - | |
723 |
| - | |
| 718 | + | |
724 | 719 |
| |
725 | 720 |
| |
726 | 721 |
| |
|
Lines changed: 2 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1942 | 1942 |
| |
1943 | 1943 |
| |
1944 | 1944 |
| |
1945 |
| - | |
1946 |
| - | |
1947 |
| - | |
1948 |
| - | |
| 1945 | + | |
1949 | 1946 |
| |
1950 | 1947 |
| |
1951 | 1948 |
| |
| |||
2002 | 1999 |
| |
2003 | 2000 |
| |
2004 | 2001 |
| |
2005 |
| - | |
2006 |
| - | |
2007 |
| - | |
2008 |
| - | |
| 2002 | + | |
2009 | 2003 |
| |
2010 | 2004 |
| |
2011 | 2005 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
217 |
| - | |
218 |
| - | |
| 217 | + | |
219 | 218 |
| |
220 | 219 |
| |
221 | 220 |
| |
|
Lines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
156 |
| - | |
| 155 | + | |
157 | 156 |
| |
158 | 157 |
| |
159 | 158 |
| |
| |||
300 | 299 |
| |
301 | 300 |
| |
302 | 301 |
| |
303 |
| - | |
304 |
| - | |
| 302 | + | |
305 | 303 |
| |
306 | 304 |
| |
307 | 305 |
| |
| |||
420 | 418 |
| |
421 | 419 |
| |
422 | 420 |
| |
423 |
| - | |
424 |
| - | |
425 |
| - | |
426 |
| - | |
| 421 | + | |
427 | 422 |
| |
428 | 423 |
| |
429 | 424 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
381 | 382 |
| |
382 | 383 |
| |
383 | 384 |
| |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
384 | 401 |
| |
385 | 402 |
| |
386 | 403 |
| |
|
0 commit comments
Comments
(0)