forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb6d8a60
committed
Restore pg_pread and friends.
Commitscf112c1 anda0dc827 were a little too hasty in getting rid ofthe pg_ prefixes where we use pread(), pwrite() and vectored variants.We dropped support for ancient Unixes where we needed to use lseek() toimplement replacements for those, but it turns out that Windows alsochanges the current position even when you pass in an offset toReadFile() and WriteFile() if the file handle is synchronous, despiteits documentation saying otherwise.Switching to asynchronous file handles would fix that, but have othercomplications. For now let's just put back the pg_ prefix and add somecomments to highlight the non-standard side-effect, which we can nowdescribe as Windows-only.Reported-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>Discussion:https://postgr.es/m/20220923202439.GA1156054%40nathanxps131 parent3a58176 commitb6d8a60
File tree
19 files changed
+75
-55
lines changed- contrib/pg_stat_statements
- src
- backend
- access
- heap
- transam
- backup
- replication
- storage/file
- utils/init
- bin/pg_test_fsync
- include
- access
- port
- port
19 files changed
+75
-55
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2103 | 2103 |
| |
2104 | 2104 |
| |
2105 | 2105 |
| |
2106 |
| - | |
| 2106 | + | |
2107 | 2107 |
| |
2108 |
| - | |
| 2108 | + | |
2109 | 2109 |
| |
2110 | 2110 |
| |
2111 | 2111 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 | 1152 |
| |
1153 |
| - | |
| 1153 | + | |
1154 | 1154 |
| |
1155 | 1155 |
| |
1156 | 1156 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
721 |
| - | |
| 721 | + | |
722 | 722 |
| |
723 | 723 |
| |
724 | 724 |
| |
| |||
873 | 873 |
| |
874 | 874 |
| |
875 | 875 |
| |
876 |
| - | |
| 876 | + | |
877 | 877 |
| |
878 | 878 |
| |
879 | 879 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2196 | 2196 |
| |
2197 | 2197 |
| |
2198 | 2198 |
| |
2199 |
| - | |
| 2199 | + | |
2200 | 2200 |
| |
2201 | 2201 |
| |
2202 | 2202 |
| |
| |||
3018 | 3018 |
| |
3019 | 3019 |
| |
3020 | 3020 |
| |
3021 |
| - | |
| 3021 | + | |
3022 | 3022 |
| |
3023 | 3023 |
| |
3024 | 3024 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1544 | 1544 |
| |
1545 | 1545 |
| |
1546 | 1546 |
| |
1547 |
| - | |
| 1547 | + | |
1548 | 1548 |
| |
1549 | 1549 |
| |
1550 | 1550 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3271 | 3271 |
| |
3272 | 3272 |
| |
3273 | 3273 |
| |
3274 |
| - | |
| 3274 | + | |
3275 | 3275 |
| |
3276 | 3276 |
| |
3277 | 3277 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1828 | 1828 |
| |
1829 | 1829 |
| |
1830 | 1830 |
| |
1831 |
| - | |
| 1831 | + | |
1832 | 1832 |
| |
1833 | 1833 |
| |
1834 | 1834 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
915 | 915 |
| |
916 | 916 |
| |
917 | 917 |
| |
918 |
| - | |
| 918 | + | |
919 | 919 |
| |
920 | 920 |
| |
921 | 921 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2053 | 2053 |
| |
2054 | 2054 |
| |
2055 | 2055 |
| |
2056 |
| - | |
| 2056 | + | |
2057 | 2057 |
| |
2058 | 2058 |
| |
2059 | 2059 |
| |
| |||
2135 | 2135 |
| |
2136 | 2136 |
| |
2137 | 2137 |
| |
2138 |
| - | |
| 2138 | + | |
2139 | 2139 |
| |
2140 | 2140 |
| |
2141 | 2141 |
| |
| |||
3740 | 3740 |
| |
3741 | 3741 |
| |
3742 | 3742 |
| |
3743 |
| - | |
| 3743 | + | |
3744 | 3744 |
| |
3745 | 3745 |
| |
3746 | 3746 |
| |
| |||
3760 | 3760 |
| |
3761 | 3761 |
| |
3762 | 3762 |
| |
3763 |
| - | |
| 3763 | + | |
3764 | 3764 |
| |
3765 | 3765 |
| |
3766 | 3766 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1527 | 1527 |
| |
1528 | 1528 |
| |
1529 | 1529 |
| |
1530 |
| - | |
| 1530 | + | |
1531 | 1531 |
| |
1532 | 1532 |
| |
1533 | 1533 |
| |
|
Lines changed: 25 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
340 |
| - | |
341 |
| - | |
342 |
| - | |
343 |
| - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
| |||
359 | 359 |
| |
360 | 360 |
| |
361 | 361 |
| |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| |||
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| |||
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| |||
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
487 | 487 |
| |
488 | 488 |
| |
489 | 489 |
| |
| |||
582 | 582 |
| |
583 | 583 |
| |
584 | 584 |
| |
585 |
| - | |
| 585 | + | |
586 | 586 |
| |
587 | 587 |
| |
588 | 588 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
381 |
| - | |
| 381 | + | |
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 |
| - | |
| 385 | + | |
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
216 | 225 |
| |
217 | 226 |
| |
218 | 227 |
| |
|
Lines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 |
| - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 |
| |
41 | 48 |
| |
42 |
| - | |
43 |
| - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
44 | 53 |
| |
45 | 54 |
| |
46 | 55 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 |
| - | |
| 567 | + | |
568 | 568 |
| |
569 | 569 |
| |
570 |
| - | |
| 570 | + | |
571 | 571 |
| |
572 | 572 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
|
0 commit comments
Comments
(0)