forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commita84e90b
committed
Disallow UNION/INTERSECT/EXCEPT over no columns.
Since 9.4, we've allowed the syntax "select union select" and variantsof that. However, the planner wasn't expecting a no-column set operationand ended up treating the set operation as if it were UNION ALL.Pre-v10, there seem to be some executor issues that would need to befixed to support such cases, and it doesn't really seem worth expendingmuch effort on. Just disallow it, instead.Per report from Victor Yegorov.Discussion:https://postgr.es/m/CAGnEbojGJrRSOgJwNGM7JSJZpVAf8xXcVPbVrGdhbVEHZ-BUMw@mail.gmail.com1 parent195516c commita84e90b
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
| |||
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
741 | | - | |
| 742 | + | |
742 | 743 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
747 | 748 | | |
748 | 749 | | |
749 | 750 | | |
| |||
0 commit comments
Comments
(0)