forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitec67869
committed
Make write of pgstats file durable at shutdown
This switches the pgstats write code to use durable_rename() rather thanrename(). This ensures that the stats file's data is durable when thestatistics are written, which is something only happening at shutdownnow with the checkpointer doing the job.This could cause the statistics to be lost even after PostgreSQL is shutdown, should a host failure happen, for example.Suggested-by: Konstantin KnizhnikReviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/ZpDQTZ0cAz0WEbh7@paquier.xyz1 parent4b74ebf commitec67869
1 file changed
+2
-5
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1478 | 1478 |
| |
1479 | 1479 |
| |
1480 | 1480 |
| |
1481 |
| - | |
| 1481 | + | |
1482 | 1482 |
| |
1483 |
| - | |
1484 |
| - | |
1485 |
| - | |
1486 |
| - | |
| 1483 | + | |
1487 | 1484 |
| |
1488 | 1485 |
| |
1489 | 1486 |
| |
|
0 commit comments
Comments
(0)