- Notifications
You must be signed in to change notification settings - Fork5
Commit7dfb9b4
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 parentb09caec commit7dfb9b4
1 file changed
+64
-27
lines changedLines changed: 64 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
847 |
| - | |
848 | 847 |
| |
849 |
| - | |
850 | 848 |
| |
851 |
| - | |
852 | 849 |
| |
853 |
| - | |
854 | 850 |
| |
855 | 851 |
| |
856 | 852 |
| |
857 | 853 |
| |
858 |
| - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
859 | 865 |
| |
860 |
| - | |
861 |
| - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
862 | 876 |
| |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 |
| - | |
| 877 | + | |
| 878 | + | |
867 | 879 |
| |
868 |
| - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
869 | 884 |
| |
870 |
| - | |
| 885 | + | |
871 | 886 |
| |
872 |
| - | |
873 |
| - | |
874 |
| - | |
875 |
| - | |
| 887 | + | |
876 | 888 |
| |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 |
| - | |
882 |
| - | |
883 |
| - | |
884 |
| - | |
885 |
| - | |
886 |
| - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
887 | 924 |
| |
888 | 925 |
| |
889 | 926 |
| |
|
0 commit comments
Comments
(0)