forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaa55183
committed
Use 64 bit type for BufFileSize().
BufFileSize() can't use off_t, because it's only 32 bits wide onsome systems. BufFile objects can have many 1GB segments so thetotal size can exceed 2^31. The only known client of the functionis parallel CREATE INDEX, which was reported to fail when buildinglarge indexes on Windows.Though this is technically an ABI break on platforms with a 32 bitoff_t and we might normally avoid back-patching it, the function isbrand new and thus unlikely to have been discovered by extensionauthors yet, and it's fairly thoroughly broken on those platformsanyway, so just fix it.Defect in9da0cc3. Bug #15460. Back-patch to 11, where thisfunction landed.Author: Thomas MunroReported-by: Paul van der Linden, Pavel OskinReviewed-by: Peter GeogheganDiscussion:https://postgr.es/m/15460-b6db80de822fa0ad%40postgresql.orgDiscussion:https://postgr.es/m/CAHDGBJP_GsESbTt4P3FZA8kMUKuYxjg57XHF7NRBoKnR%3DCAR-g%40mail.gmail.com1 parenteaf746a commitaa55183
3 files changed
+5
-5
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
768 | 768 |
| |
769 | 769 |
| |
770 | 770 |
| |
771 |
| - | |
| 771 | + | |
772 | 772 |
| |
773 | 773 |
| |
774 |
| - | |
| 774 | + | |
775 | 775 |
| |
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
779 | 779 |
| |
780 | 780 |
| |
781 |
| - | |
| 781 | + | |
782 | 782 |
| |
783 | 783 |
| |
784 | 784 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
429 |
| - | |
| 429 | + | |
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
0 commit comments
Comments
(0)