- Notifications
You must be signed in to change notification settings - Fork5
Commitaaf2442
committed
Remove query_planner's overhasty rejection of cases where
tlist and qual are NULL. It ought to handle these the same as the caseswhere tlist contains only constant expressions, ie, be willing to generatea Result-node plan. This did not use to matter, but it does now becauseunion_planner will flatten the tlist when aggregates are present. Thus,'select count(1) from table' now causes query_planner to be given a nulltlist, and to duplicate 6.4's behavior we need it to give back a Resultplan rather than refusing the query. 6.4 was arguably doing the WrongThing for this query, but I'm not going to open a semantics issue rightbefore 6.5 release ... can revisit that problem later.1 parentacf242d commitaaf2442
1 file changed
+11
-25
lines changedLines changed: 11 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
73 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 | 90 |
| |
108 | 91 |
| |
109 |
| - | |
110 |
| - | |
| 92 | + | |
111 | 93 |
| |
112 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
113 | 99 |
| |
114 | 100 |
| |
115 | 101 |
| |
| |||
143 | 129 |
| |
144 | 130 |
| |
145 | 131 |
| |
146 |
| - | |
| 132 | + | |
147 | 133 |
| |
148 | 134 |
| |
149 | 135 |
| |
150 | 136 |
| |
151 | 137 |
| |
152 |
| - | |
| 138 | + | |
153 | 139 |
| |
154 | 140 |
| |
155 | 141 |
| |
|
0 commit comments
Comments
(0)