- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7c3fb50

Amit Kapila
Log messages for replication slot acquisition and release.
This commit log messages (at LOG level when log_replication_commands isset, otherwise at DEBUG1 level) when walsenders acquire and releasereplication slots. These messages help to know the lifetime of areplication slot - one can know how long a streaming standby, logicalsubscriber, or replication slot consumer is down. These messages will beuseful on production servers to debug and analyze inactive replicationslots.Note that these messages are emitted only for walsenders but not forbackends. This is because walsenders are the ones that typically holdreplication slots for longer durations, unlike backends which hold themfor executing replication related functions.Author: Bharath RupireddyReviewed-by: Peter Smith, Amit Kapila, Alvaro HerreraDiscussion:http://postgr.es/m/CALj2ACX17G7F-jeLt+7KhJ6YxVeRwR8Zk0rDh4VnT546o0UpTQ@mail.gmail.com1 parent07cb297 commit7c3fb50
2 files changed
+36
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7510 | 7510 |
| |
7511 | 7511 |
| |
7512 | 7512 |
| |
7513 |
| - | |
7514 |
| - | |
7515 |
| - | |
7516 |
| - | |
7517 |
| - | |
| 7513 | + | |
| 7514 | + | |
| 7515 | + | |
| 7516 | + | |
| 7517 | + | |
| 7518 | + | |
7518 | 7519 |
| |
7519 | 7520 |
| |
7520 | 7521 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
540 | 550 |
| |
541 | 551 |
| |
542 | 552 |
| |
| |||
549 | 559 |
| |
550 | 560 |
| |
551 | 561 |
| |
| 562 | + | |
| 563 | + | |
552 | 564 |
| |
553 | 565 |
| |
554 | 566 |
| |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
555 | 573 |
| |
556 | 574 |
| |
557 | 575 |
| |
| |||
596 | 614 |
| |
597 | 615 |
| |
598 | 616 |
| |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
599 | 629 |
| |
600 | 630 |
| |
601 | 631 |
| |
|
0 commit comments
Comments
(0)