forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite2c9460
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 parent672def6 commite2c9460
1 file changed
+24
-5
lines changedLines changed: 24 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
992 | 992 |
| |
993 | 993 |
| |
994 | 994 |
| |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
| 995 | + | |
| 996 | + | |
1000 | 997 |
| |
1001 | 998 |
| |
1002 | 999 |
| |
| |||
1008 | 1005 |
| |
1009 | 1006 |
| |
1010 | 1007 |
| |
| 1008 | + | |
1011 | 1009 |
| |
1012 | 1010 |
| |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1013 | 1032 |
| |
1014 | 1033 |
| |
1015 | 1034 |
| |
|
0 commit comments
Comments
(0)