- Notifications
You must be signed in to change notification settings - Fork28
Commitd4b34f6
committed
Deduplicate PageIsNew() check in lazy_scan_heap().
The recheck isn't needed anymore, as RelationGetBufferForTuple() nowextends the relation with RBM_ZERO_AND_LOCK. Previously we needed tohandle the fact that relation extension extended the relation and thenseparately acquired a lock on the page - while expecting that the pageis empty.Reported-By: Ranier VilelaDiscussion:https://postgr.es/m/CAEudQArA_=J0D5T258xsCY6Xtf6wiH4b=QDPDgVS+WZUN10WDw@mail.gmail.com1 parent364bdd0 commitd4b34f6
1 file changed
+11
-21
lines changedLines changed: 11 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1147 | 1147 |
| |
1148 | 1148 |
| |
1149 | 1149 |
| |
1150 |
| - | |
1151 |
| - | |
1152 | 1150 |
| |
1153 | 1151 |
| |
1154 | 1152 |
| |
1155 | 1153 |
| |
1156 | 1154 |
| |
1157 | 1155 |
| |
1158 | 1156 |
| |
1159 |
| - | |
1160 |
| - | |
1161 |
| - | |
1162 |
| - | |
1163 | 1157 |
| |
1164 | 1158 |
| |
1165 | 1159 |
| |
1166 | 1160 |
| |
1167 | 1161 |
| |
1168 | 1162 |
| |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1169 | 1168 |
| |
1170 |
| - | |
1171 |
| - | |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
1176 | 1169 |
| |
1177 | 1170 |
| |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
| 1171 | + | |
1181 | 1172 |
| |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1185 | 1176 |
| |
1186 |
| - | |
1187 |
| - | |
1188 |
| - | |
| 1177 | + | |
| 1178 | + | |
1189 | 1179 |
| |
1190 | 1180 |
| |
1191 | 1181 |
| |
|
0 commit comments
Comments
(0)