forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1661a40
committed
Cosmetic improvements in setup of planner's per-RTE arrays.
Merge setup_append_rel_array into setup_simple_rel_arrays. There's noparticularly good reason to keep them separate, and it's inconsistentwith the lack of separation in expand_planner_arrays. The only apparentbenefit was that the fast path for trivial queries in query_planner()doesn't need to set up the append_rel_array; but all we're saving thereis an if-test and NULL assignment, which surely ought to be negligible.Also improve some obsolete comments.Discussion:https://postgr.es/m/17220.1565301350@sss.pgh.pa.us1 parentb8f2da0 commit1661a40
File tree
5 files changed
+34
-47
lines changed- src
- backend/optimizer
- plan
- prep
- util
- include
- nodes
- optimizer
5 files changed
+34
-47
lines changedLines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 82 | + | |
85 | 83 |
| |
86 | 84 |
| |
87 | 85 |
| |
| |||
156 | 154 |
| |
157 | 155 |
| |
158 | 156 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 | 157 |
| |
166 | 158 |
| |
167 | 159 |
| |
|
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
135 |
| - | |
| 135 | + | |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 | 139 |
| |
146 | 140 |
| |
147 | 141 |
| |
|
Lines changed: 28 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
| 70 | + | |
| 71 | + | |
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
78 | 80 |
| |
79 |
| - | |
| 81 | + | |
| 82 | + | |
80 | 83 |
| |
81 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 |
| |
83 |
| - | |
| 89 | + | |
84 | 90 |
| |
85 | 91 |
| |
86 | 92 |
| |
87 |
| - | |
| 93 | + | |
88 | 94 |
| |
89 | 95 |
| |
90 | 96 |
| |
91 | 97 |
| |
92 | 98 |
| |
93 | 99 |
| |
94 | 100 |
| |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 | 101 |
| |
| 102 | + | |
110 | 103 |
| |
111 | 104 |
| |
112 | 105 |
| |
| |||
116 | 109 |
| |
117 | 110 |
| |
118 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
119 | 118 |
| |
120 | 119 |
| |
121 | 120 |
| |
| |||
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 |
| |
139 | 142 |
| |
140 | 143 |
| |
| |||
145 | 148 |
| |
146 | 149 |
| |
147 | 150 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 | 151 |
| |
155 | 152 |
| |
156 | 153 |
| |
157 | 154 |
| |
158 | 155 |
| |
159 | 156 |
| |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 |
| |
161 | 164 |
| |
162 | 165 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
207 |
| - | |
208 |
| - | |
209 |
| - | |
| 207 | + | |
| 208 | + | |
210 | 209 |
| |
211 | 210 |
| |
212 | 211 |
| |
213 | 212 |
| |
214 | 213 |
| |
215 | 214 |
| |
216 |
| - | |
217 |
| - | |
| 215 | + | |
| 216 | + | |
218 | 217 |
| |
219 | 218 |
| |
220 | 219 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
280 |
| - | |
281 | 280 |
| |
282 | 281 |
| |
283 | 282 |
| |
|
0 commit comments
Comments
(0)