forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea1aada
Replace gratuitous memmove() with memcpy()
The index access methods all had similar code that copied thepassed-in scan keys to local storage. They all used memmove() forthat, which is not wrong, but it seems confusing not to use memcpy()when that would work. Presumably, this was all once copied fromancient code and never adjusted.Discussion:https://www.postgresql.org/message-id/flat/f8c739d9-f48d-4187-b214-df3391ba41ab@eisentraut.org1 parent1a30bf0 commitea1aada
7 files changed
+9
-26
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
| 58 | + | |
62 | 59 |
| |
63 | 60 |
| |
64 | 61 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
956 | 956 |
| |
957 | 957 |
| |
958 | 958 |
| |
959 |
| - | |
960 |
| - | |
| 959 | + | |
961 | 960 |
| |
962 | 961 |
| |
963 | 962 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
447 | 447 |
| |
448 | 448 |
| |
449 | 449 |
| |
450 |
| - | |
451 |
| - | |
452 |
| - | |
453 |
| - | |
| 450 | + | |
454 | 451 |
| |
455 | 452 |
| |
456 | 453 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 |
| - | |
237 |
| - | |
| 236 | + | |
238 | 237 |
| |
239 | 238 |
| |
240 | 239 |
| |
| |||
289 | 288 |
| |
290 | 289 |
| |
291 | 290 |
| |
292 |
| - | |
293 |
| - | |
| 291 | + | |
294 | 292 |
| |
295 | 293 |
| |
296 | 294 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
| 418 | + | |
423 | 419 |
| |
424 | 420 |
| |
425 | 421 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
407 |
| - | |
408 |
| - | |
409 |
| - | |
| 407 | + | |
410 | 408 |
| |
411 | 409 |
| |
412 | 410 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
387 |
| - | |
388 |
| - | |
| 387 | + | |
389 | 388 |
| |
390 | 389 |
| |
391 | 390 |
| |
392 | 391 |
| |
393 | 392 |
| |
394 | 393 |
| |
395 |
| - | |
396 |
| - | |
| 394 | + | |
397 | 395 |
| |
398 | 396 |
| |
399 | 397 |
| |
|
0 commit comments
Comments
(0)