aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2017-12-29 16:19:51 +0100
committerMagnus Hagander <magnus@hagander.net>2017-12-29 16:22:43 +0100
commitb38c3d58ed6f43c14e1e0f78f82db0e60cc2fedb (patch)
treed51a1b8560ab15bf9e764010004487d7893d48ad /src/backend/access/gist
parentbdbf29aaef7d1c698c1c5838a7b8cb027c406f9c (diff)
downloadpostgresql-b38c3d58ed6f43c14e1e0f78f82db0e60cc2fedb.tar.gz
postgresql-b38c3d58ed6f43c14e1e0f78f82db0e60cc2fedb.zip
Properly set base backup backends to active in pg_stat_activity
When walsenders were included in pg_stat_activity, only the ones actually streaming WAL were listed as active when they were active. In particular, the connections sending base backups were listed as being idle. Which means that a regular pg_basebackup would show up with one active 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 then back to idle. Details about exactly what they are doing is available in pg_stat_replication. Patch by me, review by Michael Paquier and David Steele.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions