forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit98ec7fd
committed
Sync unlogged relations to disk after they have been reset.
Unlogged relations are only reset when performing a uncleanrestart. That means they have to be synced to disk during cleanshutdowns. During normal processing that's achieved by registering abuffer's file to be fsynced at the next checkpoint when flushed. ButResetUnloggedRelations() doesn't go through the buffer manager, sonothing will force reset relations to disk before the next shutdowncheckpoint.So just make ResetUnloggedRelations() fsync the newly created mainforks to disk.Discussion: 20140912112246.GA4984@alap3.anarazel.deBackpatch to 9.1 where unlogged tables were introduced.Abhijit Menon-Sen and Andres Freund1 parentd3586fc commit98ec7fd
1 file changed
+47
-0
lines changedLines changed: 47 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
342 | 389 |
| |
343 | 390 |
| |
344 | 391 |
| |
|
0 commit comments
Comments
(0)