forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitecac235
committed
Widen COPY FROM's current-line-number counter from 32 to 64 bits.
Because the code for the HEADER option skips a line when this counteris zero, a very long COPY FROM WITH HEADER operation would drop a lineevery 2^32 lines. A lesser but still unfortunate problem is that errorswould show a wrong input line number for errors occurring beyond the2^31'st input line. While such large input streams seemed impracticalwhen this code was first written, they're not any more. Widening thecounter (and some associated variables) to uint64 should be enough toprevent problems for the foreseeable future.David RowleyDiscussion:https://postgr.es/m/CAKJS1f88yh-6wwEfO6QLEEvH3BEugOq2QX1TOja0vCauoynmOQ@mail.gmail.com1 parent17f188c commitecac235
1 file changed
+21
-17
lines changedLines changed: 21 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
| |||
2192 | 2192 |
| |
2193 | 2193 |
| |
2194 | 2194 |
| |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
2195 | 2199 |
| |
2196 | 2200 |
| |
2197 | 2201 |
| |
2198 | 2202 |
| |
2199 | 2203 |
| |
2200 |
| - | |
2201 |
| - | |
| 2204 | + | |
| 2205 | + | |
2202 | 2206 |
| |
2203 | 2207 |
| |
2204 |
| - | |
2205 |
| - | |
| 2208 | + | |
| 2209 | + | |
2206 | 2210 |
| |
2207 | 2211 |
| |
2208 | 2212 |
| |
| |||
2212 | 2216 |
| |
2213 | 2217 |
| |
2214 | 2218 |
| |
2215 |
| - | |
2216 |
| - | |
| 2219 | + | |
| 2220 | + | |
2217 | 2221 |
| |
2218 | 2222 |
| |
2219 | 2223 |
| |
2220 | 2224 |
| |
2221 | 2225 |
| |
2222 | 2226 |
| |
2223 |
| - | |
2224 |
| - | |
| 2227 | + | |
| 2228 | + | |
2225 | 2229 |
| |
2226 | 2230 |
| |
2227 | 2231 |
| |
| |||
2242 | 2246 |
| |
2243 | 2247 |
| |
2244 | 2248 |
| |
2245 |
| - | |
2246 |
| - | |
| 2249 | + | |
| 2250 | + | |
2247 | 2251 |
| |
2248 | 2252 |
| |
2249 | 2253 |
| |
2250 | 2254 |
| |
2251 |
| - | |
2252 |
| - | |
| 2255 | + | |
| 2256 | + | |
2253 | 2257 |
| |
2254 | 2258 |
| |
2255 | 2259 |
| |
| |||
2320 | 2324 |
| |
2321 | 2325 |
| |
2322 | 2326 |
| |
2323 |
| - | |
| 2327 | + | |
2324 | 2328 |
| |
2325 | 2329 |
| |
2326 | 2330 |
| |
| |||
2903 | 2907 |
| |
2904 | 2908 |
| |
2905 | 2909 |
| |
2906 |
| - | |
| 2910 | + | |
2907 | 2911 |
| |
2908 | 2912 |
| |
2909 | 2913 |
| |
2910 |
| - | |
| 2914 | + | |
2911 | 2915 |
| |
2912 | 2916 |
| |
2913 | 2917 |
| |
|
0 commit comments
Comments
(0)