forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1471a14
committed
Fix SortTocFromFile() to cope with lines that are too long for its buffer.
The original coding supposed that a dump TOC file could never contain lineslonger than 1K. The folly of that was exposed by a recent report fromPer-Olov Esgard. We only really need to see the first dozen or two bytesof each line, since we're just trying to read off the numeric ID at thestart of the line; so there's no need for a particularly huge buffer.What there is a need for is logic to not process continuation bufferloads.Back-patch to all supported branches, since it's always been like this.1 parent82a4f37 commit1471a14
1 file changed
+24
-5
lines changedLines changed: 24 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1003 | 1003 |
| |
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
| 1006 | + | |
| 1007 | + | |
1011 | 1008 |
| |
1012 | 1009 |
| |
1013 | 1010 |
| |
| |||
1019 | 1016 |
| |
1020 | 1017 |
| |
1021 | 1018 |
| |
| 1019 | + | |
1022 | 1020 |
| |
1023 | 1021 |
| |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1024 | 1043 |
| |
1025 | 1044 |
| |
1026 | 1045 |
| |
|
0 commit comments
Comments
(0)