- Notifications
You must be signed in to change notification settings - Fork28
Commitbc153c9

Amit Kapila
Attach FPI to the first record after full_page_writes is turned on.
XLogInsert fails to attach a required FPI to the first record afterfull_page_writes is turned on by the last checkpoint. This bug gotintroduced in 9.5 due to code rearrangement in commits2c03216 and2076db2. Fix it by ensuring that XLogInsertRecord performs arecomputation when the given record is generated with FPW as off butfound that the flag has been turned on while actually inserting therecord.Reported-by: Kyotaro HoriguchiAuthor: Kyotaro HoriguchiReviewed-by: Amit KapilaBackpatch-through: 9.5 where this problem was introducedDiscussion:https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp1 parent514a731 commitbc153c9
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
944 | 944 |
| |
945 | 945 |
| |
946 | 946 |
| |
947 |
| - | |
| 947 | + | |
948 | 948 |
| |
949 | 949 |
| |
950 | 950 |
| |
| |||
977 | 977 |
| |
978 | 978 |
| |
979 | 979 |
| |
| 980 | + | |
980 | 981 |
| |
981 | 982 |
| |
982 | 983 |
| |
| |||
1024 | 1025 |
| |
1025 | 1026 |
| |
1026 | 1027 |
| |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
1030 |
| - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1031 | 1036 |
| |
1032 | 1037 |
| |
1033 | 1038 |
| |
| |||
1042 | 1047 |
| |
1043 | 1048 |
| |
1044 | 1049 |
| |
1045 |
| - | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1046 | 1053 |
| |
1047 | 1054 |
| |
1048 | 1055 |
| |
|
0 commit comments
Comments
(0)