- Notifications
You must be signed in to change notification settings - Fork5
Commit04d9f4d
committed
Improve pg_dump's checkSeek() function to verify the functioning of ftello
as well as fseeko, and to not assume that fseeko(fp, 0, SEEK_CUR) provesanything. Also improve some related comments. Per my observation thatthe SEEK_CUR test didn't actually work on some platforms, and subsequentdiscussion with Robert Haas.Back-patch to 8.4. In earlier releases it's not that important whetherwe get the hasSeek test right, but with parallel restore it matters.1 parentb779ea8 commit04d9f4d
2 files changed
+44
-23
lines changedLines changed: 37 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
1755 | 1755 |
| |
1756 | 1756 |
| |
1757 | 1757 |
| |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1758 | 1763 |
| |
1759 | 1764 |
| |
1760 | 1765 |
| |
| |||
2981 | 2986 |
| |
2982 | 2987 |
| |
2983 | 2988 |
| |
2984 |
| - | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
2985 | 2995 |
| |
2986 | 2996 |
| |
2987 | 2997 |
| |
| |||
3000 | 3010 |
| |
3001 | 3011 |
| |
3002 | 3012 |
| |
3003 |
| - | |
3004 | 3013 |
| |
3005 | 3014 |
| |
3006 | 3015 |
| |
| |||
3068 | 3077 |
| |
3069 | 3078 |
| |
3070 | 3079 |
| |
3071 |
| - | |
| 3080 | + | |
3072 | 3081 |
| |
3073 | 3082 |
| |
3074 | 3083 |
| |
3075 | 3084 |
| |
3076 |
| - | |
3077 |
| - | |
3078 |
| - | |
3079 |
| - | |
3080 |
| - | |
3081 |
| - | |
3082 |
| - | |
3083 |
| - | |
3084 |
| - | |
3085 |
| - | |
3086 |
| - | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
3087 | 3093 |
| |
3088 | 3094 |
| |
3089 |
| - | |
3090 |
| - | |
3091 |
| - | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
3092 | 3111 |
| |
3093 | 3112 |
| |
3094 | 3113 |
| |
|
Lines changed: 7 additions & 5 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 |
| |
| |||
835 | 835 |
| |
836 | 836 |
| |
837 | 837 |
| |
838 |
| - | |
839 |
| - | |
840 |
| - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
841 | 842 |
| |
842 | 843 |
| |
843 | 844 |
| |
| |||
914 | 915 |
| |
915 | 916 |
| |
916 | 917 |
| |
917 |
| - | |
| 918 | + | |
| 919 | + | |
918 | 920 |
| |
919 | 921 |
| |
920 | 922 |
| |
|
0 commit comments
Comments
(0)