- Notifications
You must be signed in to change notification settings - Fork5k
Commitbabef40
committed
Teach walsender to update its process title for replication commands.
Because the code path taken for SQL commands executed in a walsenderwill update the process title, we pretty much have to update thetitle for replication commands as well. Otherwise, the title shows"idle" for the rest of a logical walsender's lifetime once it'sexecuted any SQL command.Playing with this, I confirm that a walsender now typically spendsmost of its life reportingwalsender postgres [local] START_REPLICATIONConsidering this in isolation, it might be better to have it saywalsender postgres [local] sending replication dataHowever, consistency with the other cases seems to be a strongerargument.In passing, remove duplicative pgstat_report_activity call.Discussion:https://postgr.es/m/880181.1600026471@sss.pgh.pa.us1 parentadd1058 commitbabef40
1 file changed
+12
-2
lines changedLines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1616 | 1616 |
| |
1617 | 1617 |
| |
1618 | 1618 |
| |
| 1619 | + | |
1619 | 1620 |
| |
1620 | 1621 |
| |
1621 | 1622 |
| |
1622 | 1623 |
| |
1623 | 1624 |
| |
1624 | 1625 |
| |
| 1626 | + | |
1625 | 1627 |
| |
1626 | 1628 |
| |
1627 | 1629 |
| |
1628 | 1630 |
| |
1629 | 1631 |
| |
1630 | 1632 |
| |
1631 | 1633 |
| |
| 1634 | + | |
1632 | 1635 |
| |
1633 | 1636 |
| |
1634 | 1637 |
| |
1635 | 1638 |
| |
1636 | 1639 |
| |
1637 | 1640 |
| |
| 1641 | + | |
1638 | 1642 |
| |
1639 | 1643 |
| |
1640 | 1644 |
| |
| |||
1644 | 1648 |
| |
1645 | 1649 |
| |
1646 | 1650 |
| |
| 1651 | + | |
1647 | 1652 |
| |
1648 | 1653 |
| |
1649 | 1654 |
| |
| |||
1659 | 1664 |
| |
1660 | 1665 |
| |
1661 | 1666 |
| |
| 1667 | + | |
1662 | 1668 |
| |
1663 | 1669 |
| |
1664 | 1670 |
| |
| |||
1670 | 1676 |
| |
1671 | 1677 |
| |
1672 | 1678 |
| |
| 1679 | + | |
1673 | 1680 |
| |
1674 | 1681 |
| |
1675 | 1682 |
| |
| |||
1688 | 1695 |
| |
1689 | 1696 |
| |
1690 | 1697 |
| |
1691 |
| - | |
1692 |
| - | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
1693 | 1703 |
| |
1694 | 1704 |
| |
1695 | 1705 |
| |
|
0 commit comments
Comments
(0)