Commit a820b4c
committed
Make local copy of client hostnames in backend status array.
The other strings, application_name and query string, were snapshotted to
local memory in pgstat_read_current_status(), but we forgot to do that for
client hostnames. As a result, the client hostname would appear to change in
the local copy, if the client disconnected.
Backpatch to all supported versions.
Author: Edmund Horner
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAMyN-kA7aOJzBmrYFdXcc7Z0NmW%2B5jBaf_m%3D_-77uRNyKC9r%3DA%40mail.gmail.com1 parent 72cf7f3 commit a820b4c
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3224 | 3224 | | |
3225 | 3225 | | |
3226 | 3226 | | |
| 3227 | + | |
3227 | 3228 | | |
3228 | 3229 | | |
3229 | 3230 | | |
| |||
3242 | 3243 | | |
3243 | 3244 | | |
3244 | 3245 | | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
3245 | 3249 | | |
3246 | 3250 | | |
3247 | 3251 | | |
| |||
3282 | 3286 | | |
3283 | 3287 | | |
3284 | 3288 | | |
| 3289 | + | |
| 3290 | + | |
3285 | 3291 | | |
3286 | 3292 | | |
3287 | 3293 | | |
| |||
3313 | 3319 | | |
3314 | 3320 | | |
3315 | 3321 | | |
| 3322 | + | |
3316 | 3323 | | |
3317 | 3324 | | |
3318 | 3325 | | |
| |||
0 commit comments