forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2791f21
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 parent6c1bf45 commit2791f21
1 file changed
+19
-3
lines changedLines changed: 19 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
430 | 437 |
| |
431 | 438 |
| |
432 | 439 |
| |
| |||
468 | 475 |
| |
469 | 476 |
| |
470 | 477 |
| |
471 |
| - | |
| 478 | + | |
472 | 479 |
| |
473 | 480 |
| |
474 | 481 |
| |
| |||
494 | 501 |
| |
495 | 502 |
| |
496 | 503 |
| |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
497 | 513 |
| |
498 | 514 |
| |
499 | 515 |
| |
500 | 516 |
| |
501 | 517 |
| |
502 | 518 |
| |
503 |
| - | |
| 519 | + | |
504 | 520 |
| |
505 | 521 |
| |
506 |
| - | |
| 522 | + | |
507 | 523 |
| |
508 | 524 |
| |
509 | 525 |
| |
|
0 commit comments
Comments
(0)