- Notifications
You must be signed in to change notification settings - Fork28
Commit05ca21b
committed
Fix type checking for support functions of parallel VARIADIC aggregates.
The impact of VARIADIC on the combine/serialize/deserialize supportfunctions of an aggregate wasn't thought through carefully. There isactually no impact, because variadicity isn't passed through to thesefunctions (and it doesn't seem like it would need to be). However,lookup_agg_function was mistakenly told to check things as though it werepassed through. The net result was that it was impossible to declare anaggregate that had both VARIADIC input and parallelism support functions.In passing, fix a runtime check in nodeAgg.c for the combine function'sstrictness to make its error message agree with the creation-time check.The previous message was actually backwards, and it doesn't seem likethere's a good reason to have two versions of this message text anyway.Back-patch to 9.6 where parallel aggregation was introduced.Alexey Bashtanov; message fix by meDiscussion:https://postgr.es/m/f86dde87-fef4-71eb-0480-62754aaca01b@imap.cc1 parent185f4f8 commit05ca21b
2 files changed
+19
-12
lines changedLines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
413 |
| - | |
414 |
| - | |
| 413 | + | |
| 414 | + | |
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
419 |
| - | |
420 |
| - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
421 | 422 |
| |
422 |
| - | |
| 423 | + | |
423 | 424 |
| |
424 | 425 |
| |
425 | 426 |
| |
| |||
429 | 430 |
| |
430 | 431 |
| |
431 | 432 |
| |
432 |
| - | |
| 433 | + | |
| 434 | + | |
433 | 435 |
| |
434 | 436 |
| |
435 | 437 |
| |
436 | 438 |
| |
437 | 439 |
| |
438 | 440 |
| |
439 |
| - | |
440 | 441 |
| |
441 | 442 |
| |
442 | 443 |
| |
443 | 444 |
| |
444 | 445 |
| |
445 | 446 |
| |
446 | 447 |
| |
| 448 | + | |
447 | 449 |
| |
448 | 450 |
| |
449 | 451 |
| |
450 |
| - | |
| 452 | + | |
451 | 453 |
| |
452 | 454 |
| |
453 | 455 |
| |
| |||
463 | 465 |
| |
464 | 466 |
| |
465 | 467 |
| |
| 468 | + | |
466 | 469 |
| |
467 | 470 |
| |
468 | 471 |
| |
469 | 472 |
| |
470 |
| - | |
| 473 | + | |
471 | 474 |
| |
472 | 475 |
| |
473 | 476 |
| |
| |||
770 | 773 |
| |
771 | 774 |
| |
772 | 775 |
| |
773 |
| - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
774 | 781 |
| |
775 | 782 |
| |
776 | 783 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2940 | 2940 |
| |
2941 | 2941 |
| |
2942 | 2942 |
| |
2943 |
| - | |
2944 |
| - | |
| 2943 | + | |
| 2944 | + | |
2945 | 2945 |
| |
2946 | 2946 |
| |
2947 | 2947 |
| |
|
0 commit comments
Comments
(0)