forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd02974e
committed
Properly set base backup backends to active in pg_stat_activity
When walsenders were included in pg_stat_activity, only the onesactually streaming WAL were listed as active when they were active. Inparticular, the connections sending base backups were listed as beingidle. Which means that a regular pg_basebackup would show up with oneactive and one idle connection, when both were active.This patch updates to set all walsenders to active when they are(including those doing very fast things like IDENTIFY_SYSTEM), and thenback to idle. Details about exactly what they are doing is available inpg_stat_replication.Patch by me, review by Michael Paquier and David Steele.1 parent48c9f49 commitd02974e
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1504 | 1504 |
| |
1505 | 1505 |
| |
1506 | 1506 |
| |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
1507 | 1510 |
| |
1508 | 1511 |
| |
1509 | 1512 |
| |
| |||
1555 | 1558 |
| |
1556 | 1559 |
| |
1557 | 1560 |
| |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
1558 | 1564 |
| |
1559 | 1565 |
| |
1560 | 1566 |
| |
| |||
1570 | 1576 |
| |
1571 | 1577 |
| |
1572 | 1578 |
| |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1573 | 1582 |
| |
1574 | 1583 |
| |
1575 | 1584 |
| |
| |||
2089 | 2098 |
| |
2090 | 2099 |
| |
2091 | 2100 |
| |
2092 |
| - | |
2093 |
| - | |
2094 |
| - | |
2095 | 2101 |
| |
2096 | 2102 |
| |
2097 | 2103 |
| |
|
0 commit comments
Comments
(0)