forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit785b8d6
committed
Fix handling of pg_stat_statements.stat temporary file
Write the file to a temporary name and then rename() it into thepermanent name, to ensure it can't end up half-written and corruptin case of a crash during shutdown.Unlink the file after it has been read so it's removed from the datadirectory and not included in base backups going to replication slaves.1 parent2ce097e commit785b8d6
1 file changed
+19
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
421 | 428 |
| |
422 | 429 |
| |
423 | 430 |
| |
| |||
459 | 466 |
| |
460 | 467 |
| |
461 | 468 |
| |
462 |
| - | |
| 469 | + | |
463 | 470 |
| |
464 | 471 |
| |
465 | 472 |
| |
| |||
485 | 492 |
| |
486 | 493 |
| |
487 | 494 |
| |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
488 | 504 |
| |
489 | 505 |
| |
490 | 506 |
| |
491 | 507 |
| |
492 | 508 |
| |
493 | 509 |
| |
494 |
| - | |
| 510 | + | |
495 | 511 |
| |
496 | 512 |
| |
497 |
| - | |
| 513 | + | |
498 | 514 |
| |
499 | 515 |
| |
500 | 516 |
| |
|
0 commit comments
Comments
(0)