diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-11 23:39:48 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-11 23:40:03 +0300 |
commit | 89c2ab34039864488b8a83c03d1b1d841adf4aaf (patch) | |
tree | 488bfa8ea00dcc44fb28cb8cb96cd0fadc5d1d0c /src/backend/access/spgist/spgxlog.c | |
parent | 93e60b9494672ee49bbba8b485ef9d3c76fe3a20 (diff) |
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.com
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions