- Notifications
You must be signed in to change notification settings - Fork5
Commitbab7823
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 parentb899ccb commitbab7823
1 file changed
+64
-27
lines changedLines changed: 64 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
866 | 866 |
| |
867 | 867 |
| |
868 | 868 |
| |
869 |
| - | |
870 | 869 |
| |
871 |
| - | |
872 | 870 |
| |
873 |
| - | |
874 | 871 |
| |
875 |
| - | |
876 | 872 |
| |
877 | 873 |
| |
878 | 874 |
| |
879 | 875 |
| |
880 |
| - | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
881 | 887 |
| |
882 |
| - | |
883 |
| - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
884 | 898 |
| |
885 |
| - | |
886 |
| - | |
887 |
| - | |
888 |
| - | |
| 899 | + | |
| 900 | + | |
889 | 901 |
| |
890 |
| - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
891 | 906 |
| |
892 |
| - | |
| 907 | + | |
893 | 908 |
| |
894 |
| - | |
895 |
| - | |
896 |
| - | |
897 |
| - | |
| 909 | + | |
898 | 910 |
| |
899 |
| - | |
900 |
| - | |
901 |
| - | |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 |
| - | |
906 |
| - | |
907 |
| - | |
908 |
| - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
909 | 946 |
| |
910 | 947 |
| |
911 | 948 |
| |
|
0 commit comments
Comments
(0)