- Notifications
You must be signed in to change notification settings - Fork5
Commitfa0f466
committed
Log the creation of an init fork unconditionally.
Previously, it was thought that this only needed to be done for thebenefit of possible standbys, so wal_level = minimal skipped it.But that's not safe, because during crash recovery we might replayXLOG_DBASE_CREATE or XLOG_TBLSPC_CREATE record which recursivelyremoves the directory that contains the new init fork. So log italways.The user-visible effect of this bug is that if you create a databaseor tablespace, then create an unlogged table, then crash withoutcheckpointing, then restart, accessing the table will fail, becausethe it won't have been properly reset. This commit fixes that.Michael Paquier, per a report from Konstantin Knizhnik. Wording ofthe comments per a suggestion from me.1 parent0b78106 commitfa0f466
File tree
4 files changed
+38
-24
lines changed- contrib/bloom
- src/backend
- access
- nbtree
- spgist
- catalog
4 files changed
+38
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 255 | + | |
| 256 | + | |
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 174 | + | |
| 175 | + | |
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
1387 | 1389 | | |
1388 | 1390 | | |
1389 | 1391 | | |
1390 | 1392 | | |
1391 | 1393 | | |
1392 | 1394 | | |
1393 | | - | |
1394 | | - | |
| 1395 | + | |
1395 | 1396 | | |
1396 | 1397 | | |
1397 | 1398 | | |
| |||
0 commit comments
Comments
(0)