forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5833306
committed
Fix pg_xlogdump so that it handles cross-page XLP_FIRST_IS_CONTRECORD record.
Previously pg_xlogdump failed to dump the contents of the WAL fileif the file starts with the continuation WAL record which spansmore than one pages. Since pg_xlogdump assumed that the continuationrecord always fits on a page, it could not find the valid WAL record tostart reading from in that case.This patch changes pg_xlogdump so that it can handle a continuationWAL record which crosses a page boundary and find the valid recordto start reading from.Back-patch to 9.3 where pg_xlogdump was introduced.Author: Pavan DeolaseeReviewed-By: Michael Paquier and Craig RingerDiscussion: CABOikdPsPByMiG6J01DKq6om2+BNkxHTPkOyqHM2a4oYwGKsqQ@mail.gmail.com1 parent68bd9f7 commit5833306
1 file changed
+64
-27
lines changedLines changed: 64 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
911 | 911 |
| |
912 | 912 |
| |
913 | 913 |
| |
914 |
| - | |
915 | 914 |
| |
916 |
| - | |
917 | 915 |
| |
918 |
| - | |
919 | 916 |
| |
920 | 917 |
| |
921 |
| - | |
922 | 918 |
| |
923 | 919 |
| |
924 | 920 |
| |
925 | 921 |
| |
926 |
| - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
927 | 933 |
| |
928 |
| - | |
929 |
| - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
930 | 944 |
| |
931 |
| - | |
932 |
| - | |
933 |
| - | |
934 |
| - | |
| 945 | + | |
| 946 | + | |
935 | 947 |
| |
936 |
| - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
937 | 952 |
| |
938 |
| - | |
| 953 | + | |
939 | 954 |
| |
940 |
| - | |
941 |
| - | |
942 |
| - | |
943 |
| - | |
| 955 | + | |
944 | 956 |
| |
945 |
| - | |
946 |
| - | |
947 |
| - | |
948 |
| - | |
949 |
| - | |
950 |
| - | |
951 |
| - | |
952 |
| - | |
953 |
| - | |
954 |
| - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
955 | 992 |
| |
956 | 993 |
| |
957 | 994 |
| |
|
0 commit comments
Comments
(0)